Last active
November 25, 2023 02:22
-
-
Save benigumocom/090ed6da11b5eb2f5e4141d4fa7dea87 to your computer and use it in GitHub Desktop.
Set JAVA_HOME with Android Studio embed JDK
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
| ~ find '/Applications/Android Studio.app/Contents/jre/Contents/Home' | |
| find: /Applications/Android Studio.app/Contents/jre/Contents/Home: No such file or directory | |
| ~ find "$HOME/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio" -path '*/Android Studio.app/Contents/jre/Contents/Home' | |
| /Users/maochanz/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8512546/Android Studio.app/Contents/jre/Contents/Home | |
| # plain android studio | |
| JAVA_HOME='/Applications/Android Studio.app/Contents/jre/Contents/Home' | |
| # jb toolbox android studio | |
| JAVA_HOME=$(find "$HOME/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio" -path '*/Android Studio.app/Contents/jre/Contents/Home') |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AndroidStudio 利用する Java (JDK) の選択・設定の方法
👉 https://android.benigumo.com/20211202/androidstudio-java-jdk/