问题描述
我下载了Android的工作室,并试图启动该程序。
I downloaded Android Studio and attempted to launch the program.
这是在Windows 7 64位与Java 1.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的工作室。没有JDK发现。请验证 无论是ANDROID_STUDIO_JDK,或JDK_HOME或JAVA_HOME指向有效 JDK安装。 ECHO处于关闭状态。 preSS任意键继续。 。
我试图打开的想法
属性文件,看看是否有什么我可以配置为这个 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 Files文件\的Java \ jdk1.7.0_21 \
为我工作。最新的Java版本可以下载here.
Adding a system variable JDK_HOME
with value c:\Program Files\Java\jdk1.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.
这篇关于Android的Studio安装在Windows 7上失败,没有JDK发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!