无法安装 Android 开发工具包:提示缺少 JDK
我访问 Oracle 站点,在 Windows 7 64 位虚拟机上下载并安装了 Java Platform (JDK) 7。我将c:\program files\Java\jdk1.7.0\bin的路径添加到path环境变量中。我什至按照某人的建议删除了 c:\windows\system32\Java.exe。我基本上遵循的是: "Android Create" call failed in windows 7 - 缺少 JDK
当我安装 ADT 时,出现错误 JDK 无法找到。下载最新的 JDK。为什么?
谢谢。
I went to the Oracle site, downloaded and installed Java Platform (JDK) 7 on a Windows 7 64 bit virtual machine. I added the path to the c:\program files\Java\jdk1.7.0\bin to the path environment variable. I even deleted c:\windows\system32\Java.exe as recommended by someone. I was essentially following this: "Android Create" call fails in windows 7 - missing JDK
When I install the ADT it gives me the error JDK could not be found. Download the latest JDK. Why?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这是因为Android DK 在找到JDK 之前先在c:\windows\system32\ 文件夹中找到java。
要解决此问题,请编辑 PATH 环境变量并将 JDK 路径放在 c:\windows\system32\ 路径之前。
this is caused because the Android DK finds java in the c:\windows\system32\ folder before it finds the JDK one.
To resolve this edit your PATH environment variable and put the JDK path before the c:\windows\system32\ path.
只需在ADT安装程序中,当安装程序提示
No JDK Found
时按back
,然后按next
,安装程序会找到JDK
,这肯定是一个常见的错误Just in the ADT installer , press
back
when the installer promite forNo JDK Found
then pressnext
, the installer will find theJDK
, for sure this is a common bug打开eclipse会出现这种情况吗?
我正在考虑两个可能的问题。这是一种可能的解决方案: Eclipse - 没有 Java (JRE) / (JDK ) ...没有虚拟机
如果您已经有了这个,请转到窗口 -> Android SDK 和 AVD 首选项
第一个“首选项”应询问您的 Android SDK 文件夹。你需要正确设置它。
Does that happen when you open eclipse?
I'm thinking in two possible problems. Here is one possible solution: Eclipse - no Java (JRE) / (JDK) ... no virtual machine
If you already got this, go to Window -> Android SDK and AVD preferences
The first "preference" should ask you your Android SDK folder. you need to set this correctly.
你的JDK安装不正确。
重新安装JDK。它应该工作正常。
我也遇到过这个问题一次。我已执行上述操作来解决此问题。
您不应为此问题删除 C:\Windows\System32 文件夹,它可能会导致操作系统问题。
Your JDK installation is not proper.
Reinstall JDK. It should be working fine.
I also had this problem once. I have done the above to resolve this issue.
You should not delete C:\Windows\System32 folder for this issue, It might lead to OS problems.
adil 的答案最终对我有用(尽管我已将 jdk\bin 添加到路径中并创建\将 JAVA_HOME 设置为相同的路径);将 jdk\din 目录移到 PATH 中的 win\sys32 之前最终允许我在 win7/64 位上安装 android sdk
adil's answer is the one which finally worked for me (although I had added the jdk\bin to the path and created\set the JAVA_HOME to the same); moving the jdk\din directory before the win\sys32 in the PATH finally allowed me to install the android sdk on win7/64bit