Android: Execution failed for task ':app:proce

2020-02-05 18:15发布

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

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/mobi27/opt/AND-Studio/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

9条回答
做个烂人
2楼-- · 2020-02-05 18:50

Just a f*king Invalidate Caches & restart did the trick for me

查看更多
一纸荒年 Trace。
3楼-- · 2020-02-05 18:53

You just need to update the build tool version inside app/build.gradle

buildToolsVersion "26.0.0"

Now Clean Project and go ahead.

查看更多
对你真心纯属浪费
4楼-- · 2020-02-05 18:56

In my case I have this line in attrs.xml (values folder):

<flag name="default" value="0" />

default - is reserved word, so I renamed it and fixed it!

<flag name="font_default" value="0" />
查看更多
登录 后发表回答