java 当我启动它时,Android Studio 给我错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37888536/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 02:55:05  来源:igfitidea点击:

Android Studio is giving me errors when I start it

javaandroid

提问by Ravi kumar

Whenever I start Android Studio, I get the following error message

每当我启动 Android Studio 时,都会收到以下错误消息

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 to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher

错误:CreateProcess 错误=216,此版本的 %1 与您运行的 Windows 版本不兼容。检查您计算机的系统信息以了解您是否需要 x86(32 位)或 x64(64 位)版本的程序,然后联系软件发行商

回答by BABITH G

I had the same issue, but I have resolved it the next:

我有同样的问题,但我已经解决了下一个:

1) Install jdk1.8 or higher

1) 安装 jdk1.8 或更高版本

2) In AndroidStudio File->Project Structure->SDK Location, select your directory where the JKD is located, by default Studio uses embedded JDK but for some reason it produces error=216.

2) 在 AndroidStudio File->Project Structure->SDK Location 中,选择 JKD 所在的目录,默认情况下 Studio 使用嵌入式 JDK 但由于某种原因它产生错误 = 216。

3) Click Ok.

3) 单击确定。

回答by Zoe

Start by figuring out whether your computer is 32 or 64 bit. If you don't know how, see the start of this answer(up until the aboutmenu)

首先确定您的计算机是 32 位还是 64 位。如果您不知道如何,请参阅此答案的开头(直到about菜单)

There you will see if your system is x64 or x32 bit. From there install the correct version of Android studio.

在那里您将看到您的系统是 x64 位还是 x32 位。从那里安装正确版本的 Android Studio。

Open the directory where you have installed Android Studio.

打开安装 Android Studio 的目录。

  • <android-studio-install-dir>\bin\studio.exe is the 32-bit launcher.
  • <android-studio-install-dir>\bin\studio64.exe is the 64-bit launcher.
  • <android-studio-install-dir>\bin\studio.exe 是 32 位启动器。
  • <android-studio-install-dir>\bin\studio64.exe 是 64 位启动器。

Select the one that matches your system and launch it. Remove any shortcuts leading to the wrong executable and replace them with the correct one.

选择与您的系统匹配的一个并启动它。删除导致错误可执行文件的所有快捷方式,并将其替换为正确的快捷方式。

回答by Elder Freitas

The studio android 2.2 is setting the time of installation the path of the JDK to the JRE folder. Enter android studio setting and add the correct path for the JDK. Only that.

studio android 2.2是设置安装时JDK的路径到JRE文件夹的。进入android studio设置,添加正确的JDK路径。只有这样。