Configuration Problem


#1

I was almost done when an problem occured. I executed “ionic platform add android” and it told me “ANDROID_HOME is not set and ‘android’ command not in your PATH. You must fulfill at least one of these conditions.” How should I solve this problem? By the way, I’m operating on Linux.


#2

hi,
in ionic docs its say :

If you are running a 64-bit version of Ubuntu, you’ll need to install
the 32-bit libraries since Android is only 32-bit at the moment.
$ sudo apt-get install ia32-libs
If you are on Ubuntu 13.04 or greater, ia32-libs has been removed. You can use the following packages instead:
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

and then you need to add to the bash file instruction you can find in this link:

https://www.java.com/en/download/help/path.xml

and then add to the bash file:

export JAVA_HOME=/path/to/jdkFolder/jdk1.6.0_35
export PATH=$JAVA_HOME/bin:$PATH