forked from giantray/stackoverflow-java-top-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android-sdk-installation-doesnt-find-jdk
- Loading branch information
俎金好
committed
Aug 22, 2016
1 parent
1d7bcfa
commit 1bac5e9
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
##安装Android SDK的时候找不到JDK | ||
|
||
###问题 | ||
我在我的win7 64位的系统上安装Android SDK时,jdk-6u23-windows-x64.exe已经安装上了,但是Android SDK的安装程序却因为找不到已安装的JDK无法继续下去。 | ||
这个问题出现过吗?有没有办法解决呢? | ||
|
||
![](http://ww2.sinaimg.cn/large/0060lm7Tgw1f72ny3m6oaj30ds0a0gmi.jpg) | ||
|
||
###回答1: | ||
当你看到这个提示(找不到jdk)的时候按Back(返回),然后再点Next(下一步)。这个时候,它将会去寻找JDK | ||
|
||
###回答2: | ||
实际安装: | ||
|
||
- 系统:windows 8.1 | ||
- JDK文件: jdk-8u11-windows-x64.exe | ||
- ADT文件:installer_r23.0.2-windows.exe | ||
安装64位JDK,然后尝试第一个回答中的back-next的方法。然后尝试设置JAVA_HOME 根据错误信息的提示,但是,仍旧对我没有用处,然后,尝试如下解决办法: | ||
|
||
按照它说的做,设置JAVA_HOME在你的系统环境变量中,这个路径要使用正斜杠(/)而非反斜杠(\) | ||
|
||
**注意:** | ||
当我把JAVA_HOME设置为C:\Program Files\Java\jdk1.6.0_31的时候还是不行,但是当我设置成C:/Program Files/Java/jdk1.6.0_31的时候就ok了。快把我逼疯了。 | ||
|
||
如果还不行,就把 %JAVA_HOME%加在环境变量Path的头部。 | ||
|
||
下面是我的环境变量的配置: | ||
- JAVA_HOME=C:/Program Files/Java/jdk1.8.0_11 | ||
- JRE_HOME=C:/Program Files/Java/jre8 | ||
- Path=%JAVA_HOME%;C:... |