Execution failed for task ':processReleaseResources'


#1

Hello Friends i am facing this problem in ionic when i build android APk. i am getting this error:

> FAILURE: Build failed with an exception.
> BUILD FAILED
> Total time: 9.556 secs
> * What went wrong:
> Execution failed for task ':processReleaseResources'.
> > com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
> xecException: Process 'command 'C:\Users\DELL\AppData\Local\Android\sdk\build-to
> ols\24.0.0\aapt.exe'' finished with non-zero exit value 1

> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug
> option to get more log output.

Please Help.Thank You


#2

Hi, did you ever solve this? I get the same error when building the ionic tutorial project for android.

The full debug log is as follows:

`Running command: /home/aaa/Documents/Projects/ionic/todo/hooks/after_prepare/010_add_platform_class.js /home/aaa/Documents/Projects/ionic/todo 
add to body class: platform-android 
ANDROID_HOME=/opt/android-sdk-linux 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386 
Incremental java compilation is an incubating feature. 
:preBuild UP-TO-DATE 
:preReleaseBuild UP-TO-DATE 
:checkReleaseManifest 
:CordovaLib:preBuild UP-TO-DATE 
:CordovaLib:preReleaseBuild UP-TO-DATE 
:CordovaLib:compileReleaseNdk UP-TO-DATE 
:CordovaLib:compileLint 
:CordovaLib:copyReleaseLint UP-TO-DATE 
:CordovaLib:mergeReleaseProguardFiles 
:CordovaLib:packageReleaseRenderscript UP-TO-DATE 
:CordovaLib:checkReleaseManifest 
:CordovaLib:prepareReleaseDependencies 
:CordovaLib:compileReleaseRenderscript 
:CordovaLib:generateReleaseResValues 
:CordovaLib:generateReleaseResources 
:CordovaLib:packageReleaseResources 
:CordovaLib:compileReleaseAidl 
:CordovaLib:generateReleaseBuildConfig 
:CordovaLib:mergeReleaseShaders 
:CordovaLib:compileReleaseShaders 
:CordovaLib:generateReleaseAssets 
:CordovaLib:mergeReleaseAssets 
:CordovaLib:processReleaseManifest 
:CordovaLib:processReleaseResources FAILED

FAILURE: Build failed with an exception.

What went wrong: 
Execution failed for task ':CordovaLib:processReleaseResources'.

 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/android-sdk-linux/build-tools/24.0.3/aapt'' finished with non-zero exit value 2 

Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.681 secs 
Error: /home/aaa/Documents/Projects/ionic/todo/platforms/android/gradlew: Command failed with exit code 1 Error output: 
FAILURE: Build failed with an exception.

What went wrong: 
Execution failed for task ':CordovaLib:processReleaseResources'.

 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/android-sdk-linux/build-tools/24.0.3/aapt'' finished with non-zero exit value 2 

Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 
`

#3

i change my android SDK Build tools version(23.0.3) and its work fine for me…Please try hope its work for you also


#4

Where to change it?

Same error here

  • What went wrong:
    Execution failed for task ‘:processReleaseResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘E:\android-sdk\build-tools\23.0.2\aapt.exe’’ finished with non-zero exit value 1


#5

Thanks, this worked for me.

I just downgradeded the build tools in the Android SDK manager to 23.0.3.


#6

i have same issue ! anyone can help me…
ill getting this error when im trying to build my old app but I can build new ones


#7

Please Help I am getting same issue
please provide with steps so that everyone can solve it


#8

i solve this issue with updateing android studion librarys

Thanks & Regards

Punit Saharan