# Failed Android Integration?

**URL:** <https://forum.ionicframework.com/t/failed-android-integration/63697>\
**Category:** ionic-v1\
**Created:** [September 17, 2016, 5:57pm UTC](https://forum.ionicframework.com/t/failed-android-integration/63697 "2016-09-17T17:57:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ForbiddenSoul](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/forbiddensoul/32/103143_2.png) [@ForbiddenSoul](https://forum.ionicframework.com/u/ForbiddenSoul)\
**Post date:** [September 17, 2016, 5:57pm UTC](https://forum.ionicframework.com/t/failed-android-integration/63697/1 "2016-09-17T17:57:59Z")

</div>

Developing with ionic for the first time.  
Have a mock up app that runs PC::Chrome and Android::Crome 100%  
Creating an Android APK always fails, despite following all the installation steps I took.

Short error is this:

> - 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:\Program Files (x86)\Android\android-sdk\tools\android.bat”  
> You will require:
> 
> 1. “SDK Platform” for android-23
> 2. "Android SDK Platform-tools (latest)
> 3. “Android SDK Build-tools” (latest)

Full Error:

> C:\Users\ForbiddenSoul\myproject\>ionic emulate android  
> Running command: “C:\Program Files (x86)\nodejs\node.exe” C:\Users\ForbiddenSoul\myproject\hooks\after\_prepare\010\_add\_platform\_class.js C:\Users\ForbiddenSoul\myproject

> add to body class: platform-android

> ANDROID\_HOME=C:\Program Files (x86)\Android\android-sdk

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

> 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:\Program Files (x86)\Android\android-sdk

> - Try:  
> Run with --stacktrace

> BUILD FAILED

> Total time: 2.246 secs

> 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:\Program Files (x86)\Android\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:\Program Files (x86)\Android\android-sdk\tools\android.bat”  
> You will require:
> 
> 1. “SDK Platform” for android-23
> 2. "Android SDK Platform-tools (latest)
> 3. “Android SDK Build-tools” (latest)

I think I’m missing something simple with my directory paths.  
%ANDROID\_HOME%=C:\Program Files (x86)\Android\android-sdk

It needs to pick up build tools from %ANDROID\_HOME%, there are not in there! They are in %ANDROID\_HOME%\build-tools\ _versioned folders 19-24 i’ts trying to find 23_

I just copied the contents of “build-tools” into their parent “android-sdk” I’ll post if that worked

You can add %ANDROID\_HOME%\build-tools\ to your path, which I have, but ionic or cordova or gulp or ant, or what ever, all of them look in %ANDROID\_HOME% and only there, never (it apears) in %ANDROID\_HOME%\build-tools where they are actually shipped.

Any ideas on how to integrate android .apk builds on windows 10 with ionic?

---

<div class="post-metadata">

**Author:** ![baviskarmitesh](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@baviskarmitesh](https://forum.ionicframework.com/u/baviskarmitesh)\
**Post date:** [September 19, 2016, 12:03pm UTC](https://forum.ionicframework.com/t/failed-android-integration/63697/2 "2016-09-19T12:03:53Z")

</div>

Update Android get latest SDK Platform
