Error:Execution failed for task -> "xxx/build-tools/24.0.2/aapt'' finished with non-zero exit value 1

先说一个不靠谱的解决方法:

  • step1: Clean Project
  • step2: Rebuild Project
    剩下就看RP了

杠杠的解决方法:

通过终端运行如下Gradle命令: ./gradlew assembleDebug --info
就会噼里啪啦打出一丢丢信息, 只需要关注如下信息:
Starting process 'command '/[sdk_location]/build-tools/24.0.2/aapt''

Error:Execution failed for task ->
Terminal_Info.png

找出对应的错误信息, 进行修改即可

你可能感兴趣的:(Error:Execution failed for task -> "xxx/build-tools/24.0.2/aapt'' finished with non-zero exit value 1)