我安装了Android的工作室,但它给我的错误,我需要安装JDK,但已经安装了JDK。然后,我意识到它是要求安装JDK的64位版本。
I installed Android Studio but it was giving me error that I need to install JDK but JDK was already installed. Then I realized it is asking to install 64bit version of JDK.
无论如何,我刚刚下载最新的JDK在64位版本,并设置在环境下面的变量,但仍Android的工作室给错误:
Anyway I just downloaded latest JDK 64bit version and set the following in Environment Variable but still Android Studio is giving error:
错误
'tools.jar' seems to be not in Android Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
以下路径在我的Windows 8集。
Path in User Variables
E:Program FilesJavajdk1.8.0_25bin
JAVA_HOME in System Variables
E:Program FilesJavajdk1.8.0_25
Path in System Variables
E:Program FilesJavajdk1.8.0_25bin
32位JDK安装在C盘,而64位的JDK安装在E盘上(如上图所示)。 32位JDK不被使用在任何用户或系统变量。
32bit JDK is installed on C drive while 64bit JDK is installed on E drive (as shown above). 32 bit JDK is not being used in any User or System Variables.
我也重新启动计算机。
我该如何解决这个问题?
How do I fix this issue?
推荐答案
我试着尽我所能,但它并没有帮助。于是我重新安装了Windows和Android的安装Studio和现在一切正常。
I tried everything I could but it didn't help. So I reinstalled Windows and installed Android Studio and now everything works.
和讽刺的是,没有JAVA_HOME和JDK_HOME定义变量,但它仍然有效。
And the irony is, there is no JAVA_HOME or JDK_HOME variable defined but it still works.
相关推荐
最新文章