[英]Can't start Android studio
After installing Android studio, I can't start it. 安装Android studio后,我无法启动它。 There is no response any more after click it's icon.I open the bat file named “studio.bat” in "C:\\Program Files\\Android\\android-studio\\bin",run it in cmd window, I found that:
单击它的图标后没有任何响应。我在“C:\\ Program Files \\ Android \\ android-studio \\ bin”中打开名为“studio.bat”的bat文件,在cmd窗口中运行它,我发现:
C:\Documents and Settings\mtk81346>"C:\Program Files\Android\android-studio\bin\studio.bat"
C:\Documents and Settings\mtk81346>IF EXIST "" SET JDK=
C:\Documents and Settings\mtk81346>IF NOT "" == "" GOTO jdk
C:\Documents and Settings\mtk81346>IF EXIST "C:\Program Files\Android\android-st**udio\bin\\..\jre**" SET JDK=
C:\Program Files\Android\android-studio\bin\
\..\jre
C:\Documents and Settings\mtk81346>IF NOT "" == "" GOTO jdk
将环境变量JAVA_HOME添加到最新的jdk路径。
Make sure you have JDK_HOME or JAVA_HOME System Variable set to the path of the JDK. 确保将JDK_HOME或JAVA_HOME系统变量设置为JDK的路径。
Secondly, I had an issue using an older version of the JDK (1.6.x). 其次,我使用旧版本的JDK(1.6.x)时遇到了问题。 When I upgraded to 1.7.x, and modified the System Variable JAVA_HOME to that path (didn't include /bin), I was able to get Android Studio running.
当我升级到1.7.x,并将系统变量JAVA_HOME修改为该路径(不包括/ bin)时,我能够运行Android Studio。
转到你的系统变量,只需从JAVA_HOME或JDK_HOME中删除“/ bin”,这对我有用。
I just had the same issue. 我刚才有同样的问题。 Starting the bat in a cmd gave me
Unrecognized VM option '+UseCodeCacheFlushing'
. 在cmd中启动bat给了我
Unrecognized VM option '+UseCodeCacheFlushing'
。 I then removed that one from the file studio.exe.vmoptions
in the bin folder of the studio installation and it started right away. 然后我从工作室安装的bin文件夹中的文件
studio.exe.vmoptions
中删除了那个,它立即启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.