-
-
Save dawidhyzy/98bd7d6e0e34ad0383af522e64a14be2 to your computer and use it in GitHub Desktop.
Shell function to set default JDK to Android Studio's bundled JDK
This file contains 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
function set-studio-jdk() { | |
export JAVA_HOME=$1/Contents/jre/jdk/Contents/home/ | |
} | |
// AS - JetBrains Toolbox | |
// Usage: set-studio-jdk "/Users/dawidhyzy/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683" | |
function set-studio-jdk() { | |
export JAVA_HOME="$1/Android Studio.app/Contents/jre/Contents/home/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment