找不到Android SDK.确保已安装.如果它不在默认位置,请设置ANDROID_HOME环境变量 [英] Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable
本文介绍了找不到Android SDK.确保已安装.如果它不在默认位置,请设置ANDROID_HOME环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
未找到Android SDK.请确保已安装.如果不在默认位置,请设置ANDROID_HOME环境变量."
"Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable."
在通过终端构建Cordova项目时遇到此问题,如果我通过Android Studio运行,则不会得到此问题的根本原因.
Facing this issue while building the Cordova Project through Terminal, if I run through Android Studio I am not getting the issue what will be the root cause for this issue.
推荐答案
这只是在更新cordova时的一种解决方法:
This is just a workaround while cordova is being updated:
- 删除目录/Android/sdk/tools
- 下载 https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
- 解压缩
- 将新文件夹放置在/Android/sdk/tools
- Remove directory /Android/sdk/tools
- download https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
- Unzip
- Place new folder in /Android/sdk/tools
这篇关于找不到Android SDK.确保已安装.如果它不在默认位置,请设置ANDROID_HOME环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文