
Mgamerz is right - The release notes give a much better solution for rc3 and onwards - theres a idea.properties file

Android studio failed to crunch file install#
(The reason why Android Studio want's to run off of JRE 1.6 is because it apparently makes the fonts look better - feel free to go through that "official" route and install JRE 1.6 - you can then set the JDK to 1.8 in the SDK Location settings - local.properties) Solution 3 vmoptions to set up additional settings.) Antonio Jose managed with just the first line - AFAIK you can use. (Remember to save the script as Application. Or setting up the environment through AppleScript at every MacOS startup: do shell script "launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk"ĭo shell script "launchctl setenv STUDIO_PROPERTIES /Users/username/Library/Preferences/AndroidStudio/idea.properties"ĭo shell script "launchctl setenv STUDIO_VM_OPTIONS /Users/username/Library/Preferences/AndroidStudio/studio.vmoptions" Recommended method as discovered by Antonio Jose is to edit environment variables in MacOS (messing with ist is not recommended)Įither at program launch (opening the Studio through terminal rather than the icon) $ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
Android studio failed to crunch file mac#
Solution 2Īs answered by hasternet Android Studio was unable to find a valid Jvm (Related to MAC OS)įor quick and dirty solution, Follow the answer by Mgamerz open Android Studio in Finder (CTRL+Click > Show Package Contests > Contents > ist) and edit Key JVMOptions>JVMVersion from "1.6*" to "1.6+" This fix seems to apply to all of IntelliJ's IDEs (I've seen it on P圜harm as well), though other ones seem to support newer versions of java natively. I don't get why that made a difference since my original output said it was using 1.7 anyways. To open the package you need to find the Android Studio.app file in the Applications folder and right click it > Show Package Contents.Įdit 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 Android Studio insists we install and use an outdated, vulnerable version of Java. You have to edit the android studio's ist file in the package so it uses 1.7. As of Android Studio 1.0 RC3 you can follow this set of directions to make it work.
