Error:execution failed for task ': App:processdebugresources '. The solution

Source: Internet
Author: User

An error was reported when the Android Studio project was build:

Error:execution failed for task ': App:processdebugresources '
. Com.android.ide.common.process.ProcessException: Org.gradle.process.internal.ExecException:Process ' Command '/home/... Sdk/build-tools/21.0.1/aapt ' finished with Non-zero exit value 1

Error:execution failed for task ': App:processdebugresources '.

> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process ' command ' D:\Java\as-sdk\build-tools\23.0.0_rc3\aapt.exe ' finished with Non-zero exit value 1

The answers on the web, Most of the Build.gradle compatibility package and compilesdkversion configuration is not caused, but before the project run time is completely no problem, and has not modified Gradle file, so should not be caused by this reason, look carefully, in this error above, there is a hint wrong message ~~


With the wrong message, it's easy to find. Generally is a resource file conflict, you can clean the project, check the resources there is no missing or repeat ~ ~ like my side of the error is activity_home is already define, that is, repeating, but interestingly, I res/ Layout directory Clearly there is only one file, incredibly repeat ... And, more interestingly, I deleted the XML, which is no XML layout, but it can run and display .... Imagine the studio cache, clean the project is ~ ~




Look to your downloaded SDK manager and see what's the latest version of the Android SDK Build-tools. Then change your gradle build file to that version

 
look-to-your downloaded SDK manager and see what's the latest version of the Android SDK build-to Ols. Then change your gradle build file to that version 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.