After updating android studio 3.0 unable to build the project

删除回忆录丶 提交于 2019-12-04 12:24:03
Mudassir Khan

I was facing the same issue: Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Development\Android\Sdk\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1

This problem is due to this: I have declared the stylable in the style.xml which is not correct.

<!--<declare-styleable name="mapStyle"><attr name="layout_width"/><attr name="layout_height"/><attr name="layout_weight"/></declare-styleable>-->

When I comment it then it works fine. so check your style.xml.

Check your manifest and style files very carefully. There might be errors in them. Specially if you have created your custom styles in styles.xml .

After that Build->Clean Project, and it should hopefully work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!