Last active
October 28, 2017 21:04
-
-
Save viktorbenei/6945c0fbfd93ea2ca70f to your computer and use it in GitHub Desktop.
Start Android Studio on OS X with latest JVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Env export required for JDK newer than 1.6 or 1.7 | |
# see: http://stackoverflow.com/questions/20925253/android-studio-failed-to-load-jvm-on-mac-osx-mavericks/27647165#27647165 | |
# OR use: | |
# $ launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk | |
# | |
export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk | |
open /Applications/Android\ Studio.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment