我无法在Mac OS上启动我的Android Studio进行Android开发(10.10.1 - Yosemite)
当前回答
当我更新到OS X El Capitan时,Java被卸载了。
重新安装Java前后的终端截图。
要重新安装Java,我遵循Android Studio对话框中提供的链接。
重新安装Java后,Android Studio再次运行。
其他回答
这一个工作为我,非常简单,只是导出环境变量。但确保你有有效的JVM首先。
https://code.google.com/p/android/issues/detail?id=82378
我下载了Intellij Idea。当我尝试安装Intellij时,弹出提示我的Mac缺少Java RE,你想下载吗?我用Intellij下载了丢失的包后,就可以打开Android Studio了。
正如@Gerard的建议,我总结了我的原始评论(https://stackoverflow.com/a/27370525/763459)作为答案,希望它能帮助其他被这个问题困扰的人。
有一种不运行AppleScript的方法: 编辑.bash_profile(如果这个文件不存在,请创建一个新的文件,就像@Gerard建议的那样,你可以第一次使用源文件.bash_profile)。
安装遗留Java(可能需要)http://support.apple.com/kb/DL1572 输入export STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk 然后退出终端(或任何你用来编辑这个文件的文本编辑器),运行Android Studio和viola
在OSX 10.10和Android 1.0.1上测试
编辑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)
把这个家伙装在这里
http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
你应该很好。
推荐文章
- 从Cocoa应用程序执行一个终端命令
- Android命令行工具sdkmanager总是显示:警告:无法创建设置
- 为什么Java类的编译与空行不同?
- 如何设置RecyclerView应用程序:layoutManager=""从XML?
- 在没有开发服务器的情况下在设备上构建和安装unsigned apk ?
- 操作栏和新引入的工具栏有什么不同?
- 调整浮动动作按钮图标大小(fab)
- Android Studio无法找到有效的Jvm(与MAC OS相关)
- 为什么一个组合器需要减少方法转换类型在java 8
- CountDownLatch是如何在Java多线程中使用的?
- 如果我同步了同一个类上的两个方法,它们能同时运行吗?
- 如何减去X天从一个日期对象在Java?
- Java标识符中的“连接字符”是什么?
- android:在触摸移动时移动视图
- 如何以编程方式将ID分配给视图?