我无法在Mac OS上启动我的Android Studio进行Android开发(10.10.1 - Yosemite)


当前回答

在Android工具项目网站上,有一个很好的解释Mac OSX JDK选择。它解决了我的问题。总而言之:

Android Studio需要两个不同的jdk: IDE本身使用的Java版本。 它用来获取Java编译器的JDK版本 这两者可以(而且通常是)相同,但是您可以进行配置 他们单独。尤其是在OSX上,它们经常是这样的 不同。

Yosemite (Mac OSX 10.10)

首先,请确保您拥有最新版本的Java 6 安装;在某些情况下,这已经解决了问题: http://support.apple.com/kb/DL1572 如果不是,请尝试运行最新版本的Java 7或Java 8 如上所述设置STUDIO_JDK。据报道,这个问题已经解决 其他问题(尽管您将得到字体渲染显示 Java 8以上。)

其他回答

编辑android工作室的信息。plist文件,以便它使用1.7或任何您已经安装的JVMVersion。将JVMVersion更改为1.6+而不是如上所述的hassternet回答的1.6*应该也可以工作。

上述工作,但不建议参阅RC3发行说明

As of RC 3, we have a better mechanism for customizing properties for the launchers on all three platforms. You should not edit any files in the IDE installation directory. Instead, you can customize the attributes by creating your own .properties or .vmoptions files in the following directories. (This has been possible on some platforms before, but it required you to copy and change the entire contents of the files. With the latest changes these properties are now additive instead such that you can set just the attributes you care about, and the rest will use the defaults from the IDE installation).

Android Studio无法在Mac OSX上加载JVM (Mavericks)

尝试从Apple Support Page: http://support.apple.com/kb/DL1572下载Java,如果这对你来说不起作用或无法加载(非常常见的问题),只需按照这个链接下载并安装你需要的Java版本:

http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg

就是这样。

在Mac OS X Yosemite上只需安装:

Java SE开发工具包8

and

Java Version 8 Update 25

这都是我的工作!就像gehev说的,这么简单!

不要编辑plist。这些说明在我几个月前第一次安装Android Studio时起了作用,就在今天。(1/21/2015)

你所需要做的只是几件简单的事情,尽管谷歌的网站上并没有列出。

First you need Java installed. this is not the JDK, it is seperate. You can get that from this link. If you don't have this it will probably throw an error saying something like "no JVM installed." Second you need the Java JDK, I got JDK 7 from this link. Make sure to choose the Mac OS X link under the Java SE Development Kit 7u75 heading. If you don't have this it will probably throw an error saying something like "no JDK installed." If you haven't already installed Android Studio, do that. But I'm sure you've already done that by now.

我运行了这个坏小子:

launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/