This error has plagued me for a week now. I installed android studio, sdk and gradle and don't set variables in mac and Everything was working fine and I was running my ionic app in android devices and emulators until I got this error when I run on android:
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
I set the ANDROID_HOME and PATH variables in ~/.bash_profile which I created (the file wasn't exist in the system) but I still have the same error what should I do to solve this problem, and when I enter "android" in terminal I got that output:
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and
tools/bin/avdmanager
*********************************************************************
Invalid or unsupported command "-version"
Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
what should I do to fix the problem?