简体   繁体   English

Android Studio无法检测到JDK7或更高版本

[英]Android Studio could not detect JDK7 or newer

I was trying to install the android studio in my computer (Win 10 - 64x). 我试图在计算机上安装android studio(Win 10-64x)。 By the name, probably the version is 1.4.1: android-studio-bundle-141.2456560-windows.exe 顾名思义,版本可能是1.4.1:android-studio-bundle-141.2456560-windows.exe

But I keep receiving a error saying: "We could not detect a Java Development Kit (jdk) v7 or newer on your system." 但是我一直收到一条错误消息:“我们无法在您的系统上检测到Java开发套件(jdk)v7或更高版本。”

Currently, I have the jdk1.8.0_71 (64x) version installed. 当前,我安装了jdk1.8.0_71(64x)版本。 The environment variables JAVA_HOME and JDK_HOME (not sure if this specific one is really necessary) set, and the Path has been edited as well. 设置环境变量JAVA_HOMEJDK_HOME (不确定是否确实需要此特定变量),并且路径也已编辑。

As you can see here, every variable and settings are set 如您所见,每个变量和设置都已设置

Also, I've tried changing the jdk version to the 1.7.0_79 (64x), and I've also tried placing the path between quotes.. But all of it was in vain 另外,我尝试将jdk版本更改为1.7.0_79(64x),并且还尝试在引号之间放置路径。.但是所有这些都是徒劳的

It is strange, because I'm a java developer (not android), and I've never seen something like that. 很奇怪,因为我是Java开发人员(不是android),而且我从未见过这样的东西。

ps: Every time I change the system environment variables I restart the computer to ensure the functionality of those variables. ps:每次更改系统环境变量时,我都会重新启动计算机以确保这些变量的功能。

Make sure both your Android Studio & JDK 7 are of either of 64bit or 32bit both. 确保您的Android StudioJDK 7均为64bit32bit If JDK is of 32bit and Android Studio of 64bit or vice verse, It won't work together. 如果JDK32bitAndroid Studio64bit 32bit ,反之则不能。

Assumed that, you have set your JAVA_HOME & PATH correctly. 假设您已经正确设置了JAVA_HOMEPATH

Thank you SO MUCH Grimmy Vorner!! 谢谢你,Grimmy Vorner!

I spent my day reading everything and I finally was able to get it working by using the "SDK tools package" (android-sdk_r24.4.1-windows.zip) instead of the "Android Studio package" (android-studio-bundle-143.2915827-windows.exe) from https://developer.android.com/studio/index.html 我花了一天的时间阅读所有内容,终于可以使用“ SDK工具包”(android-sdk_r24.4.1-windows.zip)而不是“ Android Studio包”(android-studio-bundle-143.2915827)使它正常工作-windows.exe), 网址https://developer.android.com/studio/index.html

另外,转到构建->编辑构建类型-> SDK位置-> JDK位置,并确保它指向正确的jdk版本(JDK 7或JDK 8)。

I tried everything that all of you said, but nothing seemed to work. 我尝试了所有人都说过的所有内容,但似乎没有任何效果。 After all I discovered that I can download a zipped version instead of an installation wizard. 毕竟,我发现可以下载压缩版本而不是安装向导。 All I had to do was unzip the android studio and execute the studio64.exe file, and then everything worked perfect. 我要做的就是解压缩android studio并执行studio64.exe文件,然后一切正常。

Still don't understand why it was not working properly with the installation wizard.. 仍然不明白为什么它不能与安装向导一起正常工作。

Anyway, thank you all for you effort! 无论如何,谢谢大家的努力!

I hope that all this information can help others in the future! 我希望所有这些信息将来都能对其他人有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM