how to fix 23.0.1\aapt.exe'' finished with non-zero exit value 1

后端 未结 27 3015
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 16:18

All of a sudden I cannot get Gradle to build any projects under Android Studio.

Error:Execution failed for task \':app:processDebugResources\'. com

27条回答
  •  独厮守ぢ
    2020-12-06 16:47

    If the error is occuring while Gradle Processes Resources, then it is most likely an issue with your resources. Check your gradle console to make sure.

    Double check any recent changes that you may have made to the res folder. In my case, I simply renamed a resource (banner.png to something_else_banner.png since banner.png must have been reserved), and it worked!

    Other things I tried that failed:

    • Based on the answer by mixel, i tried to pngcrush and optipng my png that lead my to beleive that it could be an issue with my resources since the Gradle Console showed that the error occured during :app:processDebugResources FAILED.
    • Build -> clean project Build -> rebuild project failed

提交回复
热议问题