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

后端 未结 27 3031
佛祖请我去吃肉
佛祖请我去吃肉 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:45

    I spent nearly 12 hour to find the resolution to this issue and finally I found the resolution.

    This kind of supernatural issue, might happen in the below cases,

    1. When your code has some problem, like sometimes IntelliJ/AndroidStudio does not report the compilation errors. Open each class and check for any compilation issues, these compilations issues will be because of not able to resolve few dependencies.

    2. When you have a library that is latest, but you are referring to the oldest version.(Similar to point 1).

    3. When you have a library that is dependent on some other library and that in turn referencing to old library, but your direct library is referring to newer version.

    4. Importing from JFrog Artifactory, but your cache is not cleared, and you app is still holding to older version of .aar file

    5. Your current gradle version of the app is latest, but you imported some other project as library and that version is older.

    6. Your current gradle version of the app is latest, but you imported .aar file from jfrog artifactory and that is build from older gradle version.

    when you are trying all the above cases, clean and build, or if this doesn't work, try "invalidate cache and Restart".

    error like this will fall in some or the other above mentioned cases.

    Happy Coding..!

提交回复
热议问题