I am trying to build android for ionic in linux but its showing me an error like this
[Error: Failed to find \'ANDROID_HOME\' environment variable.
~/.bashrc
sudo su
vim ~/.bashrc
Common default install folders:
Example .bashrc
export ANDROID_HOME=/root/Android/Sdk
PATH=$PATH:$ANDROID_HOME/tools
PATH=$PATH:$ANDROID_HOME/platform-tools
source ~/.bashrc
When
ionic build android
still fails it could be because of wrong sdk version. To install correct versions and images runandroid
from command line. Since it is now in your PATH you should be able to run it from anywhere.