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


当前回答

在Mac OS X Yosemite上只需安装:

Java SE开发工具包8

and

Java Version 8 Update 25

都是,为我工作!

其他回答

不要编辑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.

我下载了Intellij Idea。当我尝试安装Intellij时,弹出提示我的Mac缺少Java RE,你想下载吗?我用Intellij下载了丢失的包后,就可以打开Android Studio了。

在finder中打开Android Studio的应用程序包,并编辑信息。plist文件。修改密钥JVMversion。用1.6+代替1.6*。这招对我很管用!

编辑:

虽然这在旧版本的Android Studio中是必要的,但不再推荐这样做。详见官方声明

"请注意:不要编辑信息。请选择一个不同的版本。这不仅会破坏应用程序的签名,还会破坏未来的补丁更新。”

安东尼奥•何塞的答案是正确的。

谢谢aried3r !

把这个家伙装在这里

http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

你应该很好。

当我更新到OS X El Capitan时,Java被卸载了。

重新安装Java前后的终端截图。

要重新安装Java,我遵循Android Studio对话框中提供的链接。

重新安装Java后,Android Studio再次运行。