简体   繁体   中英

Android SDK not found.

Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.

This is the problem 问题

Cordova cant acces to the SDK even it is installed , i dont know how to change the default location but i have tried to create the android_home variable but it didnt work .

This problem is connected with actualization of Android. Android depreciated his tool: android , you can check it typing android in command line. You should see:

*************************************************************************
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 ""

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

You can solve it updating cordova

npm install -g cordova

and android platform in cordova

cordova platform rm android; cordova platform add android@6.2.3

Source

Cordova: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM