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

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

    In my case, I just used this 'android:drawableTop="2dp"' with a TextView. Obviously, it is an invalid reference. It is a good way to revert to the last git version when met with this problem.

    0 讨论(0)
  • 2020-12-06 16:41

    Add Below Library in gradle file .

    compile "com.android.support:appcompat-v7:26.0.2"
    compile "com.android.support:support-v13:26.0.2"

    0 讨论(0)
  • 2020-12-06 16:41

    I also faced similar problem, got it fixed by disabling "Instant Run" option,

    File>Settings>Build,Execution,Deployment>Instant Run Under Instant Run tab, disable "Enable Instant Run to hot swap code.."

    0 讨论(0)
  • 2020-12-06 16:42

    In my case, i was wrongly mentioned dp as d in dimension file. That cause this issue, once i corrected that value everything working fine. So due to some new added wrong values or files may cause this issue.

    0 讨论(0)
  • 2020-12-06 16:43

    It might be a bit too late to answer, but I didn't find a perfect answer, so here what worked for me:

    • make sure that all your files/fields in /res/ are correct.

    I renamed couple of fields in attrs > declareStylable so they were pointing to non-existant enums and that's what caused a error for me.

    0 讨论(0)
  • 2020-12-06 16:44

    You may miss the some resources.

    You can find the exact problem using following steps

    1. Click -> gradle (right side)

    2. Goto app-> Tasks -> build -> assembleDebug

    3. Double click assembleDebug

    You will get the exact error. you can fix your problem

    0 讨论(0)
提交回复
热议问题