Java Android Studio 错误:错误:CreateProcess 错误=216,此版本的 %1 与您运行的 Windows 版本不兼容
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37624369/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running
提问by user1406716
Installed Android Studio 2.2 Preview 2 and getting this error:
安装了 Android Studio 2.2 Preview 2 并收到此错误:
Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher
错误:CreateProcess 错误=216,此版本的 %1 与您运行的 Windows 版本不兼容。检查计算机的系统信息,然后联系软件发行商
I re-installed the JDK, still same issue.
我重新安装了JDK,仍然是同样的问题。
I even tried to use the embedded JDK but still having the same issue:
我什至尝试使用嵌入式 JDK 但仍然有同样的问题:
采纳答案by user6442395
I had the same issue, but I have resolved it the next:
我有同样的问题,但我已经解决了下一个:
1) Install jdk1.8...
1) 安装 jdk1.8...
2) In AndroidStudio File->Project Structure->SDK Location, select your directory where the JDKis located, by default Studio uses embedded JDK but for some reason it produces error=216.
2) 在 AndroidStudio File->Project Structure->SDK Location 中,选择JDK所在的目录,默认情况下 Studio 使用嵌入式 JDK 但由于某种原因它产生错误 = 216。
3) Click Ok.
3) 单击确定。
回答by Muhammad Usman
i think android studio has a 64bit kernel version which is giving the problem. https://github.com/swcarpentry/windows-installer/issues/49
我认为 android studio 有一个 64 位内核版本,这给了这个问题。 https://github.com/swcarpentry/windows-installer/issues/49
回答by Siva Prakash
REASON
原因
This happens because for now they only ship 64bit JRE with Android Studio for Windowswhich produces glitches in 32 bit systems.
发生这种情况是因为目前他们只提供带有 Android Studio for Windows 的 64 位 JRE,这会在 32 位系统中产生故障。
SOLUTION
解决方案
- do not use the embedded JDK: Go to File -> Project Structure dialog, uncheck "Use embedded JDK" and select the 32-bit JRE you've installed separately in your system
- decrease the memory footprint for Gradle in gradle.properties(Project Properties), for eg set it to -Xmx768m.
- 不使用嵌入式 JDK:转到文件 -> 项目结构对话框,取消选中“使用嵌入式 JDK”并选择您在系统中单独安装的 32 位 JRE
- 在gradle.properties(项目属性)中减少 Gradle 的内存占用,例如将其设置为-Xmx768m。
For more details: https://code.google.com/p/android/issues/detail?id=219524
更多详情:https: //code.google.com/p/android/issues/detail?id=219524
回答by Pir Fahim Shah
Don't worry... Its much easy to solve your problem. Just SET you SDK-LOCATION and JDK-LOCATION.
别担心...解决您的问题很容易。只需设置您的 SDK-LOCATION 和 JDK-LOCATION。
- Click on Configure ( As Soon Android studio open )
- Click Project Default
- Click Project Structure
Clik Android Sdk Location
Select & Browse your Android SDK Location (Like: C:\Android\sdk)
Uncheck USE EMBEDDED JDK LOCATION
- Set & Browse JDK Location, Like C:\Program Files\Java\jdk1.8.0_121
- 单击配置(尽快打开 Android 工作室)
- 单击项目默认值
- 单击项目结构
点击 Android Sdk 位置
选择并浏览您的 Android SDK 位置(例如:C:\Android\sdk)
取消选中使用嵌入式 JDK 位置
- 设置和浏览 JDK 位置,如 C:\Program Files\Java\jdk1.8.0_121