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

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

    In my case I was using wrong string resource id in a layout file. After I fixed it and rebuilded the project the error was gone. Hope this helps!

    0 讨论(0)
  • 2020-12-06 17:01

    I also have same error : "aapt-exe-finished-with-non-zero-exit-value-1"

    In my code there was an mistake in layout xml file about drawable file name, after correct it. Its working for me.

    0 讨论(0)
  • 2020-12-06 17:02

    see gradle console output,

    in my case - :app:processDemoReleaseResources FAILED

    it was cyrillic file name in asset folder

    0 讨论(0)
  • 2020-12-06 17:02

    Upgrade your buildToolsVersion to latest and make sure your appcompactv7 import matches the sdk buildtoolversion. In my case it was buildToolsVersion '26.0.0'. Upgrading to it solved my issue.

    0 讨论(0)
  • 2020-12-06 17:03

    Android studio only accepts images within a certain file name frame

    Invalid file name: must contain only [a-z0-9_.]

    I had a file by Korean. so I delete then It's worked!!!

    0 讨论(0)
  • 2020-12-06 17:03

    In my case, due to duplicated attributes in xml causes this issue. For example,

    <TextView
    android:id="@+id/tv1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Hello"
    android:text="Hello" />
    
    0 讨论(0)
提交回复
热议问题