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 |