I had set create .bash_profile file and save these lines:
export ANDROID_HOME=/Users/macbookpro/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
and then enter in terminal: source ~/.bash_profile and if I enter in terminal this command: echo $ANDROID_HOME I have the correct path:
/Users/macbookpro/Library/Android/sdk
but If I run command:
ionic cordova run android
in my ionic project, I got this error:
ERROR running one or more of the platforms: Android SDK not found. Make
sure that it is installed. If it is not at the default location, set
the ANDROID_HOME environment variable.
You may not have the required environment or OS to run this project
what should I do!