最后生成安装包的时候,提示错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugAidl'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\sdk\build-tools\29.0.0\aidl.exe'' finished with non-zero exit value -1073741819
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
到Android的编译目录下执行:

发现有这样的错误:

感觉像是内部出现了错误,尝试回退版本,编译时还是有这样的问题,最后发现在生成的配置里
compileSdkVersion androidCompileSdkVersion.toInteger()
buildToolsVersion androidBuildToolsVersion
对应的版本是:
SDK:28
ToolsVersion:29.0.0
把这个ToolsVersion改成对应的版本:28.0.3就可以了。
本文解决了一个常见的Android开发问题,在编译过程中遇到的AIDL错误。详细介绍了错误信息和原因,指出编译工具版本不匹配是问题所在,并提供了解决方案,即将buildToolsVersion从29.0.0改为28.0.3。
6332

被折叠的 条评论
为什么被折叠?



