[SOLVED] Ionic platform add android


#1

My ~/.bash_profile:

export PATH=$PATH:/Users/richard/adt/sdk/platform-tools:/Users/richard/adt/sdk/tools
export PATH=$PATH:/Users/richard/npm/bin
export JAVA_HOME=$(/usr/libexec/java_home)

Android SDK installed with:

  • Android SDK Tools v23.0.2 / v20 / v19

This is what exactly i do :

source ~/.bash_profle    
... DEV PROJECT ...
ionic platform add android

but it fails … the return:

Error: Please install Android target 19 (the Android newest SDK). Make sure you have the latest Android tools installed as well. Run "android" from your command-line to install/update any missing SDKs or tools. 

Why?


#2

enter command android, it should enter the android sdk manager, check if android sdk build-tools inside tools has the 19 revision is checked , also check inside Android someversion… direectory if Sdk platform api 19 is checked. Then install them. Maybe thats it.


#3

Thank you @duall

Yes …

Imgur


#4

I found, I missed Android 4.4.2 (API 19)