-1

ionic cordova build android

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

I had the ANDROID_HOME environment variable in the correct path.

My cordova version is 6.0.0

My android sdk tools version is 26.1.1

Thanks

Khaled Ramadan
  • 812
  • 1
  • 10
  • 26
  • Possible duplicate of [ionic2: Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID\_HOME environment variable](https://stackoverflow.com/questions/45835539/ionic2-error-android-sdk-not-found-make-sure-that-it-is-installed-if-it-is-n) – core114 Dec 22 '17 at 10:03

1 Answers1

0

you need to set ANDROID_HOME enviroment

export ANDROID_HOME=$HOME/Android/Sdk //for linux
Ferry Sanjaya
  • 224
  • 2
  • 17