When I run ionic build android command in root of ionic project, I am getting this error:
FAILURE: Build failed with an exception.
Mac IOS
Edit ~/.bash_profile by using vi or other shell editor
vi ~/.bash_profile
Add the following lines:
export ANDROID_HOME=~/Library/Android/sdk
export PATH=${PATH}:~/Software/android-sdk-macosx/tools:~/Software/android-sdk-macosx/platform-tools"
(save the file, and exit) load those updated env variables to the current shell env:
. ~/.bash_profile