Android Studio failed to load JVM on Mac OSX (Mavericks)

后端 未结 6 1410
南笙
南笙 2021-01-30 17:28

I am trying to setup Android Studio on my Mac. It is running OSX 10.9.1 Mavericks. I have installed the latest JDK (at the time of writing 1.7 update 45), and I installed Androi

6条回答
  •  情书的邮戳
    2021-01-30 18:05

    Update 12/11/2014 As of Android Studio 1.0 RC3 you can follow this set of directions to make it work.

    I figured it out. You have to edit the android studio's Info.plist file in the package so it uses 1.7. I don't get why Android Studio insists we install and use an outdated, vulnerable version of Java.

    Location of file - you need to open it in the Applications folder Full resolution: http://i.stack.imgur.com/yyYaG.png

    To open the package you need to find the Android Studio.app file in the Applications folder and right click it > Show Package Contents.

    Edit the plist (I think you might need to be root) and change JVMVersion from 1.6* to 1.7* (or 1.8*, or whatever JDK major version you have). I don't get why that made a difference since my original output said it was using 1.7 anyways.

    This fix seems to apply to all of IntelliJ's IDEs (I've seen it on PyCharm as well), though other ones seem to support newer versions of java natively.

提交回复
热议问题