Android Studio中加载失败JVM上的Mac OSX(小牛) [英] Android Studio failed to load JVM on Mac OSX (Mavericks)

查看:413
本文介绍了Android Studio中加载失败JVM上的Mac OSX(小牛)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装Android的工作室在我的Mac。它是运行OSX 10.9.1小牛。我已经安装了最新的JDK(在写1.7更新45时),我安装了Android的工作室。我使用Java 7,因为我有一些Java应用程序我要运行,他们需要1.7。我还没有安装Java 1.6,因为它是一个古老老。从任何发射器发射的Andr​​oid工作室确实几乎一无所有。活动管理从来没有说明它运行。我不想安装Java 1.6。

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 Android Studio. I use Java 7 because I have some Java applications I have to run and they require 1.7. I have not installed Java 1.6, because it is ancient and old. Launching Android Studio from any launcher does literally nothing. Activity Manager never shows it running. I do not want to install Java 1.6.

我做了一些工作,并试图通过包装内容来运行通过命令行的可执行文件,这两个可执行文件,我得到这些消息:

I did some work and tried to run the executable via command line through the package contents, and for both executables, I get these messages:

我不确定我所应该做的来解决这个错误。我不是在Mac上非常擅长(还是有些新的给它,它的混乱做这个超级用户的东西),所以如果有人能帮助我弄清楚那简直太好了。我在2013年的Macbook Air与丰富的资源,这样才能运行。

I am unsure what I am supposed to do to fix this error. I'm not very adept on a Mac (still somewhat new to it, and its confusing to do power user stuff on this) so if anyone can help me figure it out that'd be great. I'm on the 2013 Macbook Air with plenty of resources for this to run.

更新:这也适用于优山美地,埃尔卡皮坦,和所有其他版本的OSX,可以运行Android工作室

推荐答案

更新2014年12月11日
由于Android的工作室1.0 RC3,你可以按照这套方向,以使其发挥作用。

我想通了。您可以编辑的Andr​​oid工作室的Info.plist文件中的包,以便它使用1.7。我不知道为什么Android的工作室坚持我们安装和使用Java的一个过时的,脆弱的版本。

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.


全分辨率: http://i.stack.imgur.com/yyYaG.png

要打开你需要找到应用程序文件夹了Android Studio.app文件并右键单击它包>显示包内容。

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

编辑的plist(我想你可能需要root权限),从1.6 * 1.7 *更改JVMVersion(或1.8 *,或者您有任何JDK主要版本)。我不知道为什么,自从我原来的输出说,这是用1.7反正做了区别。

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.

这似乎修复适用于所有的IntelliJ的集成开发环境中(我已经看到了它在PyCharm以及),但其他的似乎支持Java的新版本本身。

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.

这篇关于Android Studio中加载失败JVM上的Mac OSX(小牛)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆