# Android Build Failed

**URL:** <https://forum.ionicframework.com/t/android-build-failed/32069>\
**Category:** ionic-v1\
**Created:** [September 9, 2015, 3:40pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069 "2015-09-09T15:40:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harliano1211](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@Harliano1211](https://forum.ionicframework.com/u/Harliano1211)\
**Post date:** [September 9, 2015, 3:40pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/1 "2015-09-09T15:40:07Z")

</div>

Hi,

I’m new to ionic and it’s very interesting to know more about it.  
But I have a problem. When I try to execute ionic build android command it comes to build failed result. The detail message is like this:  
:CordovaLib:processDebugResources FAILED

FAILURE: Build failed with an exception.

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

> com.android.ide.common.internal.LoggedErrorException: Failed to run command:

Command failed with exit code 1  
You may not have the required environment or OS to build this project

And when i try to start my android emulator, it wont show up.

please help me to fix this issue.

thank all

---

<div class="post-metadata">

**Author:** ![newkidd](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@newkidd](https://forum.ionicframework.com/u/newkidd)\
**Post date:** [September 9, 2015, 7:35pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/2 "2015-09-09T19:35:14Z")

</div>

Depends on your platform, but when I had this issue for just plain “ionic platform build” (on Windows machine), I just had to run:  
npm update -g ionic cordova (and bower, since I am using it as well)  
After I ran this command, I simply ran:  
ionic platform rm android  
ionic platform add android  
ionic build android

worked like a charm! You may need to run CMD prompt as administrator if you dont have permissions.

---

<div class="post-metadata">

**Author:** ![Harliano1211](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@Harliano1211](https://forum.ionicframework.com/u/Harliano1211)\
**Post date:** [September 10, 2015, 3:05am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/3 "2015-09-10T03:05:10Z")

</div>

Hi newkidd,

thanks for your insight, but unfortunately after I try your step the same error still occur.  
This is my ionic information

Cordova CLI: 5.3.1  
Ionic Version: 1.1.0  
Ionic CLI Version: 1.6.4  
Ionic App Lib Version: 0.3.8  
ios-deploy version: Not installed  
ios-sim version: 2.0.1  
OS: Mac OS X Lion  
Node Version: v0.12.7  
Xcode version: Xcode 4.6.3 Build version 4H1503

I’m running on mac os x Lion (10.7.5). I have no problem when running ionic build ios command.  
This is the detail message:

Running command: /Users/Arno/conference/hooks/after\_prepare/010\_add\_platform\_class.js /Users/Arno/conference  
add to body class: platform-android  
Running command: /Users/Arno/conference/platforms/android/cordova/build  
ANDROID\_HOME=/Users/Arno/android-sdk-macosx  
JAVA\_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0\_60.jdk/Contents/Home  
Running: /Users/Arno/conference/platforms/android/gradlew cdvBuildDebug -b /Users/Arno/conference/platforms/android/build.gradle -Dorg.gradle.daemon=true  
:preBuild  
:compileDebugNdk  
:preDebugBuild  
:checkDebugManifest  
:CordovaLib:compileLint  
:CordovaLib:copyDebugLint UP-TO-DATE  
:CordovaLib:mergeDebugProguardFiles  
:CordovaLib:preBuild  
:CordovaLib:preDebugBuild  
:CordovaLib:checkDebugManifest  
:CordovaLib:prepareDebugDependencies  
:CordovaLib:compileDebugAidl  
:CordovaLib:compileDebugRenderscript  
:CordovaLib:generateDebugBuildConfig  
:CordovaLib:generateDebugAssets UP-TO-DATE  
:CordovaLib:mergeDebugAssets  
:CordovaLib:generateDebugResValues  
:CordovaLib:generateDebugResources  
:CordovaLib:packageDebugResources  
:CordovaLib:processDebugManifest  
:CordovaLib:processDebugResources FAILED

FAILURE: Build failed with an exception.

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

> com.android.ide.common.internal.LoggedErrorException: Failed to run command:  
> /Users/Arno/android-sdk-macosx/build-tools/23.0.0/aapt package -f --no-crunch -I /Users/Arno/android-sdk-macosx/platforms/android-22/android.jar -M /Users/Arno/conference/platforms/android/CordovaLib/build/intermediates/bundles/debug/AndroidManifest.xml -S /Users/Arno/conference/platforms/android/CordovaLib/build/intermediates/bundles/debug/res -A /Users/Arno/conference/platforms/android/CordovaLib/build/intermediates/bundles/debug/assets -m -J /Users/Arno/conference/platforms/android/CordovaLib/build/generated/source/r/debug --debug-mode --custom-package org.apache.cordova --non-constant-id -0 apk --output-text-symbols /Users/Arno/conference/platforms/android/CordovaLib/build/intermediates/bundles/debug  
> Error Code:  
> 139

- 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: 25.908 secs

/Users/Arno/conference/platforms/android/cordova/node\_modules/q/q.js:126  
throw e;  
^  
Error code 1 for command: /Users/Arno/conference/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/Arno/conference/platforms/android/build.gradle,-Dorg.gradle.daemon=true  
ERROR building one of the platforms: Error: /Users/Arno/conference/platforms/android/cordova/build: Command failed with exit code 1  
You may not have the required environment or OS to build this project  
Error: /Users/Arno/conference/platforms/android/cordova/build: Command failed with exit code 1  
at ChildProcess.whenDone (/usr/local/lib/node\_modules/cordova/node\_modules/cordova-lib/src/cordova/superspawn.js:139:23)  
at ChildProcess.emit (events.js:110:17)  
at maybeClose (child\_process.js:1015:16)  
at Process.ChildProcess.\_handle.onexit (child\_process.js:1087:5)

I hope you can give more advice to fix this problem. This problem is frustrating 😢 😢

---

<div class="post-metadata">

**Author:** ![peterpalace](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@peterpalace](https://forum.ionicframework.com/u/peterpalace)\
**Post date:** [September 23, 2015, 4:43pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/4 "2015-09-23T16:43:21Z")

</div>

I have a similar problem. Have you found the solution?

---

<div class="post-metadata">

**Author:** ![Dellos7](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@Dellos7](https://forum.ionicframework.com/u/Dellos7)\
**Post date:** [September 24, 2015, 7:31am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/5 "2015-09-24T07:31:56Z")

</div>

Same problem here.

david@david-U44SG:~/Programacion/Movil/IonicProjects/myApp$ ionic build android  
Running command: /home/david/Programacion/Movil/IonicProjects/myApp/hooks/after\_prepare/010\_add\_platform\_class.js /home/david/Programacion/Movil/IonicProjects/myApp  
add to body class: platform-android  
Running command: /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/cordova/build  
ANDROID\_HOME=/home/david/Programacion/Movil/android-sdk-linux  
JAVA\_HOME=/usr/lib/jvm/java-8-oracle  
Running: /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/gradlew cdvBuildDebug -b /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/build.gradle -Dorg.gradle.daemon=true  
:preBuild  
:compileDebugNdk  
:preDebugBuild  
:checkDebugManifest  
:CordovaLib:compileLint  
:CordovaLib:copyDebugLint UP-TO-DATE  
:CordovaLib:mergeDebugProguardFiles  
:CordovaLib:preBuild  
:CordovaLib:preDebugBuild  
:CordovaLib:checkDebugManifest  
:CordovaLib:prepareDebugDependencies  
:CordovaLib:compileDebugAidl  
:CordovaLib:compileDebugRenderscript  
:CordovaLib:generateDebugBuildConfig  
:CordovaLib:generateDebugAssets UP-TO-DATE  
:CordovaLib:mergeDebugAssets  
:CordovaLib:generateDebugResValues  
:CordovaLib:generateDebugResources  
:CordovaLib:packageDebugResources  
:CordovaLib:processDebugManifest  
:CordovaLib:processDebugResources/home/david/Programacion/Movil/android-sdk-linux/build-tools/23.0.1/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory  
FAILED

FAILURE: Build failed with an exception.

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

> com.android.ide.common.internal.LoggedErrorException: Failed to run command:  
> /home/david/Programacion/Movil/android-sdk-linux/build-tools/23.0.1/aapt package -f --no-crunch -I /home/david/Programacion/Movil/android-sdk-linux/platforms/android-22/android.jar -M /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/CordovaLib/build/intermediates/bundles/debug/AndroidManifest.xml -S /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/CordovaLib/build/intermediates/bundles/debug/res -A /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/CordovaLib/build/intermediates/bundles/debug/assets -m -J /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/CordovaLib/build/generated/source/r/debug --debug-mode --custom-package org.apache.cordova --non-constant-id -0 apk --output-text-symbols /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/CordovaLib/build/intermediates/bundles/debug  
> Error Code:  
> 127  
> Output:  
> /home/david/Programacion/Movil/android-sdk-linux/build-tools/23.0.1/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

- 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: 2.124 secs

/home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/cordova/node\_modules/q/q.js:126  
throw e;  
^  
Error code 1 for command: /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true  
ERROR building one of the platforms: Error: /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/cordova/build: Command failed with exit code 1  
You may not have the required environment or OS to build this project  
Error: /home/david/Programacion/Movil/IonicProjects/myApp/platforms/android/cordova/build: Command failed with exit code 1  
at ChildProcess.whenDone (/home/david/Programacion/Movil/node-v4.1.1-linux-x64/lib/node\_modules/cordova/node\_modules/cordova-lib/src/cordova/superspawn.js:139:23)  
at emitTwo (events.js:87:13)  
at ChildProcess.emit (events.js:172:7)  
at maybeClose (internal/child\_process.js:817:16)  
at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:211:5)

---

<div class="post-metadata">

**Author:** ![Dellos7](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@Dellos7](https://forum.ionicframework.com/u/Dellos7)\
**Post date:** [September 24, 2015, 7:40pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/6 "2015-09-24T19:40:09Z")

</div>

Hi again,

I finally found a solution, the problem was that I didn’t have intalled some necessary libraries.  
I fixed it by installing the following libraries:

- lib32stdc++6
- lib32z1

I’m using elementaryOS Freya, a Linux distribution.  
I installed them via linux terminal:

- sudo apt-get install lib32stdc++6
- sudo apt-get install lib32z1

Source: [http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error](http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error)

I hope this works for you too.

---

<div class="post-metadata">

**Author:** ![Harliano1211](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@Harliano1211](https://forum.ionicframework.com/u/Harliano1211)\
**Post date:** [September 25, 2015, 3:52pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/7 "2015-09-25T15:52:45Z")

</div>

Hi Dellos7,

thank you for sharing, unfortunately when I try to run your suggestion mac cannot support command apt-get. It said that:  
apt-get: command not found

then I try to run using this:  
brew install lib32stdc++6  
Error: No available formula for lib32stdc++6  
==\> Searching formulae…  
==\> Searching taps…

brew install lib32z1  
Error: No available formula for lib32z1  
==\> Searching formulae…  
==\> Searching taps…

I still try to find out what happen to my developing environment for android.

---

<div class="post-metadata">

**Author:** ![gayanpathirage](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@gayanpathirage](https://forum.ionicframework.com/u/gayanpathirage)\
**Post date:** [February 9, 2016, 6:41pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/8 "2016-02-09T18:41:54Z")

</div>

> As you may have already found, this error can be visible due to many reasons. Hence you need to find actual reason behind the error.

Instead of issuing just;

> ionic build android

Navigate to platform android folder; normally located in below path

> cd [your\_project\_folder]\platform\android

And issue below command;

> gradlew.bat --info build clean

This will list the actual issue, rectify that and redo the build.

Hope this is helpful!

---

<div class="post-metadata">

**Author:** ![stells](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@stells](https://forum.ionicframework.com/u/stells)\
**Post date:** [March 7, 2016, 6:18am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/9 "2016-03-07T06:18:28Z")

</div>

I struggled with this problem for days! Thank you so much. Works wonderfully.

---

<div class="post-metadata">

**Author:** ![Silverium](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@Silverium](https://forum.ionicframework.com/u/Silverium)\
**Post date:** [April 1, 2016, 9:35pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/10 "2016-04-01T21:35:45Z")

</div>

In my case, the problem was caused by some files inside my project which had non-UTF8 characters.

I had some pictures named like “instalación.jpg” (the “ó” latin character was causing the issue).

After replacing the names of the files, the build was OK.

---

<div class="post-metadata">

**Author:** ![penafiel\_sebastian](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@penafiel\_sebastian](https://forum.ionicframework.com/u/penafiel_sebastian)\
**Post date:** [April 24, 2016, 7:05pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/11 "2016-04-24T19:05:35Z")

</div>

Thanks It worked for me on Ubuntu.

---

<div class="post-metadata">

**Author:** ![lathonez](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@lathonez](https://forum.ionicframework.com/u/lathonez)\
**Post date:** [April 27, 2016, 10:45am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/12 "2016-04-27T10:45:12Z")

</div>

Thanks worked for me on Travis (ubuntu 14.04)

---

<div class="post-metadata">

**Author:** ![Cozen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cozen/32/100109_2.png) [@Cozen](https://forum.ionicframework.com/u/Cozen)\
**Post date:** [April 27, 2016, 3:27pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/13 "2016-04-27T15:27:23Z")

</div>

I’ve got a similar issue.  
To find a workaround, I’ve created a new blank project.  
The compilation and emulation was good.  
I figure out there were a problem in my www folder.  
After some multiples test, one of my picture got that name : 'Clément.png".  
Removing the accent to get ‘Clement.png’ just fixed my problem…  
A lot of pain.

---

<div class="post-metadata">

**Author:** ![airtonbjunior](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/airtonbjunior/32/100377_2.png) [@airtonbjunior](https://forum.ionicframework.com/u/airtonbjunior)\
**Post date:** [May 10, 2016, 5:58pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/14 "2016-05-10T17:58:47Z")

</div>

Thank you, man!  
I had a similar problem here, and was solved by changing the names of some images that had special characters.

Best Regards!

---

<div class="post-metadata">

**Author:** ![Dariuso\_Clint](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Dariuso\_Clint](https://forum.ionicframework.com/u/Dariuso_Clint)\
**Post date:** [July 21, 2016, 12:54pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/15 "2016-07-21T12:54:18Z")

</div>

Thanks you @Dellos7.  
Your solution works for me.  
Ubuntu 14.04

---

<div class="post-metadata">

**Author:** ![ceciliassis](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ceciliassis/32/102692_2.png) [@ceciliassis](https://forum.ionicframework.com/u/ceciliassis)\
**Post date:** [August 26, 2016, 1:27pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/16 "2016-08-26T13:27:45Z")

</div>

Help me a lot !! Thanks

---

<div class="post-metadata">

**Author:** ![ThonyFD12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/thonyfd12/32/131518_2.png) [@ThonyFD12](https://forum.ionicframework.com/u/ThonyFD12)\
**Post date:** [August 29, 2016, 2:55pm UTC](https://forum.ionicframework.com/t/android-build-failed/32069/17 "2016-08-29T14:55:13Z")

</div>

> [@lathonez](#):
>
> Thanks worked for me on Travis (ubuntu 14.04)

Thanks worked for me on Travis (ubuntu 16.04)

---

<div class="post-metadata">

**Author:** ![rshalik](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@rshalik](https://forum.ionicframework.com/u/rshalik)\
**Post date:** [September 2, 2016, 5:21am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/18 "2016-09-02T05:21:33Z")

</div>

Hi there,

Little Help would be appreciated 😇

I’m new on ionic, ran through the same problem but none of the solutions mentioned above actually worked.

=\> Ionic Info

Cordova CLI: 6.3.1  
Ionic Framework Version: 1.3.1  
Ionic CLI Version: 2.0.0  
Ionic App Lib Version: 2.0.0-beta.20  
OS: Windows 8.1  
Node Version: v4.5.0

LOG on console. ( While executing =\> ionic build android )

C:\Windows\System32\scotch-todo\>ionic build android  
Running command: “C:\Program Files\nodejs\node.exe” C:\Windows\System32\scotch-t  
odo\hooks\after\_prepare\010\_add\_platform\_class.js C:\Windows\System32\scotch-tod  
o

add to body class: platform-android

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

JAVA\_HOME=C:\Program Files\Java\jdk1.8.0\_101

Observed package id ‘add-ons;addon-google\_apis-google-23’ in inconsistent locati  
on ‘C:\Users\rshalik\AppData\Local\Android\sdk\add-ons\addon-google\_apis-google-  
23-1’ (Expected ‘C:\Users\rshalik\AppData\Local\Android\sdk\add-ons\addon-google  
\_apis-google-23’)

Already observed package id ‘add-ons;addon-google\_apis-google-23’ in ‘C:\Users\r  
shalik\AppData\Local\Android\sdk\add-ons\addon-google\_apis-google-23’. Skipping  
duplicate at ‘C:\Users\rshalik\AppData\Local\Android\sdk\add-ons\addon-google\_ap  
is-google-23-1’

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.E  
> xecException: Process ‘command ‘C:\Users\rshalik\AppData\Local\Android\sdk\build  
> -tools\23.0.1\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: 8.561 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.E  
> xecException: Process ‘command ‘C:\Users\rshalik\AppData\Local\Android\sdk\build  
> -tools\23.0.1\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.

=\> Looking for your help guys 😓

ANDROID STUDIO: v 2.1  
Android SDK Tools 25.1.7  
Android SDK Platform-tools 24.0.2  
Android SDK Build-tools 23.0.1

SDK Platform API 23 Rev.3  
SDK Platform API 22 Rev.2

---

<div class="post-metadata">

**Author:** ![akilud](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@akilud](https://forum.ionicframework.com/u/akilud)\
**Post date:** [September 2, 2016, 5:40am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/19 "2016-09-02T05:40:06Z")

</div>

Hi,

try removing SDK Platform API 23 Rev.3 and compile again.

---

<div class="post-metadata">

**Author:** ![rshalik](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@rshalik](https://forum.ionicframework.com/u/rshalik)\
**Post date:** [September 2, 2016, 6:24am UTC](https://forum.ionicframework.com/t/android-build-failed/32069/20 "2016-09-02T06:24:11Z")

</div>

Thankyou 🙂 akilud, for your fast reply…

I did what you suggested and got following LOG…  
=\> I removed SDK Platform API 23 Rev.3 and compiled again

CONSOLE LOG:

C:\Windows\System32\scotch-todo\>ionic build android  
Running command: “C:\Program Files\nodejs\node.exe” C:\Windows\System32\scotch-t  
odo\hooks\after\_prepare\010\_add\_platform\_class.js C:\Windows\System32\scotch-tod  
o

add to body class: platform-android

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

JAVA\_HOME=C:\Program Files\Java\jdk1.8.0\_101

Observed package id ‘add-ons;addon-google\_apis-google-23’ in inconsistent locati  
on ‘C:\Users\rshalik\AppData\Local\Android\sdk\add-ons\addon-google\_apis-google-  
23-1’ (Expected ‘C:\Users\rshalik\AppData\Local\Android\sdk\add-ons\addon-google  
\_apis-google-23’)

Already observed package id ‘add-ons;addon-google\_apis-google-23’ in ‘C:\Users\r  
shalik\AppData\Local\Android\sdk\add-ons\addon-google\_apis-google-23’. Skipping  
duplicate at ‘C:\Users\rshalik\AppData\Local\Android\sdk\add-ons\addon-google\_ap  
is-google-23-1’

BUILD FAILED

Total time: 9.169 secs

FAILURE: Build failed with an exception.

- What went wrong:  
A problem occurred configuring root project ‘android’.

> failed to find target with hash string ‘android-23’ in: C:\Users\rshalik\AppDa  
> ta\Local\Android\sdk

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

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

- What went wrong:  
A problem occurred configuring root project ‘android’.

> failed to find target with hash string ‘android-23’ in: C:\Users\rshalik\AppDa  
> ta\Local\Android\sdk

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug  
option to get more log output.  
Please install Android target: “android-23”.

Hint: Open the SDK manager by running: “C:\Users\rshalik\AppData\Local\Android\s  
dk\tools\android.bat”  
You will require:

1. “SDK Platform” for android-23
2. "Android SDK Platform-tools (latest)
3. “Android SDK Build-tools” (latest)

Could you please shed some light where do i go from here now 😇

Thankyou so much for your speedy help…

[Next page](https://forum.ionicframework.com/t/android-build-failed/32069.md?page=2)
