# Build Error for Android

**URL:** <https://forum.ionicframework.com/t/build-error-for-android/67334>\
**Category:** ionic-v1\
**Created:** [October 18, 2016, 9:18am UTC](https://forum.ionicframework.com/t/build-error-for-android/67334 "2016-10-18T09:18:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hammadularefeen](https://avatars.discourse-cdn.com/v4/letter/h/3d9bf3/32.png) [@hammadularefeen](https://forum.ionicframework.com/u/hammadularefeen)\
**Post date:** [October 18, 2016, 9:18am UTC](https://forum.ionicframework.com/t/build-error-for-android/67334/1 "2016-10-18T09:18:18Z")

</div>

C:\Windows\System32\myApp\>ionic build android

Running command: “C:\Program Files\nodejs\node.exe” C:\Windows\System32\myApp\hooks\after\_prepare\010\_add\_platform\_class.js C:\Windows\System32\myApp

add to body class: platform-android

ANDROID\_HOME=C:\Users\hamma\AppData\Local\Android\sdk

JAVA\_HOME=C:\Program Files\java\jdk1.7.0\_79

Incremental java compilation is an incubating feature.

:preBuild  
UP-TO-DATE  
:preDebugBuild UP-TO-DATE  
:checkDebugManifest

:CordovaLib:preBuild UP-TO-DATE  
:CordovaLib:preDebugBuild UP-TO-DATE  
:CordovaLib:compileDebugNdk UP-TO-DATE  
:CordovaLib:compileLint  
:CordovaLib:copyDebugLint UP-TO-DATE  
:CordovaLib:mergeDebugProguardFiles

UP-TO-DATE  
:CordovaLib:packageDebugRenderscript

UP-TO-DATE  
:CordovaLib:checkDebugManifest

:CordovaLib:prepareDebugDependencies

:CordovaLib:compileDebugRenderscript

UP-TO-DATE  
:CordovaLib:generateDebugResValues

UP-TO-DATE  
:CordovaLib:generateDebugResources UP-TO-DATE  
:CordovaLib:packageDebugResources

UP-TO-DATE  
:CordovaLib:compileDebugAidl

UP-TO-DATE  
:CordovaLib:generateDebugBuildConfig

UP-TO-DATE  
:CordovaLib:mergeDebugShaders

UP-TO-DATE  
:CordovaLib:compileDebugShaders

UP-TO-DATE  
:CordovaLib:generateDebugAssets UP-TO-DATE

:CordovaLib:mergeDebugAssets

UP-TO-DATE  
:CordovaLib:processDebugManifest

UP-TO-DATE  
:CordovaLib:processDebugResources

FAILED

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:CordovaLib:processDebugResources’.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Users\hamma\AppData\Local\Android\sdk\build-tools\24.0.2\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.

BUILD FAILED

Total time: 4.324 secs

Error: cmd: Command failed with exit code 1 Error output:  
FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:CordovaLib:processDebugResources’.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Users\hamma\AppData\Local\Android\sdk\build-tools\24.0.2\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.

C:\Windows\System32\myApp\>

Guyz I am getting this error when building my app for android any idea how to resolve it?
