Android SDK not found.

跟風遠走 提交于 2020-01-15 09:54:06

问题


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 .


回答1:


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



来源:https://stackoverflow.com/questions/43252316/android-sdk-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!