I'm following this tutorial to get started with Ionic Framework. I'm stuck in this part:
ionic platform add ios
when i execute it, Terminal shows me this error:
noting that hen i run echo $ANDROID_HOME
it shows me /opt/android-sdk
, the same thing when i execute sudo android
it shows me SDK manager.
I have re-installed Android SDK, NODE, Ionic etc using the script on this page but i always get the same result.
What should i do?
PS: i'm running Ubuntu 14.04
set your path manually in .bash_profile
.
export PATH=${PATH}:<your_android_sdk_location>/platform-tools
export PATH=${PATH}:<your_android_sdk_location>/tools
Well, the solution was the following, after executing the shell script fire up the SDK Manager and install this Android 4.4.2 API19
then run ionic CLI commands without sudo
and you're done.