ANDROID_HOME Erorr

Hi,

I am following the tutorials here. Click.
When i reach the command to enable the Android platform: $ ionic platform android
I receive this error:Error: ANDROID_HOME is not set and “android” command not in your PATH. You must fulfill at least one of these conditions.

I followed this to setup my environment variables. Click

If i echo my envrioment variable $ANDROID_HOME: khan@ubuntu:~$ echo $ANDROID_HOME
/home/khan/Android/sdk

Which is pointing to the correct path. So why am i still receiving this error?

Hi @kkhan,

Even though it asks one of the conditions be met, it is a good idea to meet both conditions.

export PATH=$PATH:$ANDROID_SDK_PATH/tools
export PATH=$PATH:$ANDROID_SDK_PATH/platform-tools

It also sounds like you may be suffering from 64/32 bit problems based on your other post found here:

I suggest you take a look at a script I made that will install Android and Ionic Framework on any Ubuntu 32 or 64 bit machine.

Regards,