Android Studio installation on Windows 7 fails, no JDK found(在 Windows 7 上安装 Android Studio 失败,找不到 JDK)
问题描述
我下载了 Android Studio 并尝试启动该程序.
I downloaded Android Studio and attempted to launch the program.
这是在带有 Java 1.7 的 64 位 Windows 7 上运行的.在安装过程中,我的 Java 1.7 被检测到,安装的其余部分正常进行.但是,当尝试从桌面图标启动应用程序时,没有任何反应.查看任务管理器,从 CMD 加载了一个新进程.这是因为它试图运行批处理文件 studio.bat
.
This is running on Windows 7 64-bit with Java 1.7. During the installation my Java 1.7 is detected, and the rest of the installation goes through just fine. However, when attempting to launch the application from the desktop icon, nothing happens. Looking at the task manager, a new process from the CMD is loaded. This is because it's attempting to run the batch file studio.bat
.
当我通过 CMD 执行时,出现以下错误:
When I execute via CMD, I get the following error:
错误:无法启动 Android Studio.未找到 JDK.请验证ANDROID_STUDIO_JDK 或 JDK_HOME 或 JAVA_HOME 指向有效JDK安装.ECHO 关闭.按任意键继续 ...
ERROR: cannot start Android Studio. No JDK found. Please validate either ANDROID_STUDIO_JDK, or JDK_HOME or JAVA_HOME points to valid JDK installation. ECHO is off. Press any key to continue . . .
我试图打开 idea
属性文件,看看是否有我可以为这个 ANDROID_STUDIO_JDK
或类似的东西配置的东西.然而,我什么也没发现.我希望你们中的一些人可以让我知道您是否能够安装它或者您是否也遇到了问题.
I've attempted to open the idea
properties file to see if there was something I could configure for this ANDROID_STUDIO_JDK
or something like that. However, I found nothing. I hope some of you can let me know if you were able to install this or if you are having problems as well.
推荐答案
添加一个系统变量JDK_HOME
,其值为c:Program FilesJavajdk1.7.0_21
为我工作.最新的 Java 版本可以在这里下载.
Adding a system variable JDK_HOME
with value c:Program FilesJavajdk1.7.0_21
worked for me. The latest Java release can be downloaded here.
此外,请确保变量 JAVA_HOME
也设置为上述位置.
Additionally, make sure the variable JAVA_HOME
is also set with the above location.
这篇关于在 Windows 7 上安装 Android Studio 失败,找不到 JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Windows 7 上安装 Android Studio 失败,找不到 JDK
基础教程推荐
- 由于对所需库 rt.jar 的限制,对类的访问限制? 2022-01-01
- 如何使用 Eclipse 检查调试符号状态? 2022-01-01
- 如何强制对超级方法进行多态调用? 2022-01-01
- Spring Boot Freemarker从2.2.0升级失败 2022-01-01
- 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler 2022-01-01
- 首次使用 Hadoop,MapReduce Job 不运行 Reduce Phase 2022-01-01
- 如何对 HashSet 进行排序? 2022-01-01
- 如何使用 Stream 在集合中拆分奇数和偶数以及两者的总和 2022-01-01
- 在螺旋中写一个字符串 2022-01-01
- Java 中保存最后 N 个元素的大小受限队列 2022-01-01