完整的错误信息为,
ERROR: Process 'command 'xxx\29.0.0\aidl.exe'' finished with non-zero exit value -1073741819
根据baidu选择如下方案修改build.gradle,
之前出错的build.gradle为
android {
compileSdkVersion 28
buildToolsVersion '29'
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
}
修改后的build.gradle为
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
}
将SDK和build tool的版本号码同时降低为28,解决此问题。