How to add android platform

I am new to ionic and facing problem in setting environment setup for android device. I am using command prompt to add the android setup during the android build process it showing me erroer telling that

ANDROID_HOME is not set and “android” command not in your path

. Pls help me out :hankey:

Try this in your bash_profile :


Ionic Installation guide

Android SDK

Installing the Android SDK is also necessary. The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.

Cordova requires the ANDROID_HOME environment variable to be set. This should point to the [ANDROID_SDK_DIR]\android-sdk directory (for example c:\android\android-sdk).

Next, update your PATH to include the tools/ and platform-tools/ folder in that folder. So, using ANDROID_HOME, you would add both %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools.

Also check you have latest android sdk installed. sometimes cordova doesn’t allow to add android platfrom if you have android sdk less then 19