我正在尝试设置android-sdk,但sdkmanager不会显示。
由于出现了这个错误提示,我检查了我的JAVA_HOME变量,它正确指向jdk安装目录:
如果我运行
echo %JAVA_HOME%
在命令提示符中,我得到以下内容:
C:\Program Files\Java\jdk-10.0.1
这是android.bat的输出结果。
C:\Android\sdk\tools>android.bat
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
C:\Android\sdk\tools>