Skip to content

Instantly share code, notes, and snippets.

@viktorbenei
Last active October 28, 2017 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktorbenei/6945c0fbfd93ea2ca70f to your computer and use it in GitHub Desktop.
Save viktorbenei/6945c0fbfd93ea2ca70f to your computer and use it in GitHub Desktop.
Start Android Studio on OS X with latest JVM
#!/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