# Build error on android

**URL:** <https://forum.ionicframework.com/t/build-error-on-android/54780>\
**Category:** ionic-v1\
**Created:** [June 14, 2016, 1:33pm UTC](https://forum.ionicframework.com/t/build-error-on-android/54780 "2016-06-14T13:33:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeanpierre42](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeanpierre42](https://forum.ionicframework.com/u/jeanpierre42)\
**Post date:** [June 14, 2016, 1:33pm UTC](https://forum.ionicframework.com/t/build-error-on-android/54780/1 "2016-06-14T13:33:51Z")

</div>

Hi !

I have big problem only with android build.

When i do “cordova emulate android” or “cordova build android” I have a build failed with this message :

```
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/userMe/Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

```

What should I do to make it work ?  
I’ve tried “cordova platforms rm android” then re-add the android platforms but still the same issue.

Hope someone will help me

Thanks

---

<div class="post-metadata">

**Author:** ![jeanpierre42](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeanpierre42](https://forum.ionicframework.com/u/jeanpierre42)\
**Post date:** [June 16, 2016, 12:43pm UTC](https://forum.ionicframework.com/t/build-error-on-android/54780/2 "2016-06-16T12:43:40Z")

</div>

Here is log after `cordova build android` :

```
[...]
:processDebugResources FAILED

FAILURE: Build failed with an exception.

*What went wrong:
Execution failed for task ':processDebugResources'.
.>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/userMe/Library/Android/sdk/build-tools/24.0.0/aapt'' 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: 3.772 secs
Error: Error code 1 for command: /Users/userMe/Desktop/Développement/Multi-plateforme/myApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/userMe/Desktop/Développement/Multi-plateforme/myApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

```

I really need help guys !

---

<div class="post-metadata">

**Author:** ![fabioferrero](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/fabioferrero/32/69781_2.png) [@fabioferrero](https://forum.ionicframework.com/u/fabioferrero)\
**Post date:** [June 16, 2016, 1:21pm UTC](https://forum.ionicframework.com/t/build-error-on-android/54780/3 "2016-06-16T13:21:54Z")

</div>

The problem can be the non utf-8 char in the path (…Développement…), but you can also try to reset gradle, you can find more here: [Android Build Failed](https://forum.ionicframework.com/t/android-build-failed/32069/8)

---

<div class="post-metadata">

**Author:** ![jeanpierre42](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeanpierre42](https://forum.ionicframework.com/u/jeanpierre42)\
**Post date:** [June 16, 2016, 3:26pm UTC](https://forum.ionicframework.com/t/build-error-on-android/54780/4 "2016-06-16T15:26:00Z")

</div>

It is not the non utf-8 char in the path because I have working android project under this directory 😉

---

<div class="post-metadata">

**Author:** ![fabioferrero](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/fabioferrero/32/69781_2.png) [@fabioferrero](https://forum.ionicframework.com/u/fabioferrero)\
**Post date:** [June 16, 2016, 3:37pm UTC](https://forum.ionicframework.com/t/build-error-on-android/54780/5 "2016-06-16T15:37:01Z")

</div>

…then try to reset gradle as specified in the linked message. If this not works, try to delete all the .gradle directory in the home (is something like a cache for the gradle), this works for me.
