Applications/Android Studio.app/Contents/jre/Contents/Home/ Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/ The core problem is that starting from Android Studio Arctic Fox the destination of bundled java has been changed from: I had to install "Android SDK Command-line Tools (latest)" (from Android Studio) and use ~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager instead. On a slightly different topic, even with the correct JAVA_HOME, ~/Library/Android/sdk/tools/bin/sdkmanager wouldn't start. export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/Contents/Home/ I just did a fresh install of Android Studio Arctic Fox 2020.3.1 on Big Sur, and I had to use the following. OpenJDK 64-Bit Server VM (build 25.112-b06, mixed mode)Īs for the Android Device Monitor - it still demands this ancient JRE version 6. OpenJDK Runtime Environment (build 1.8.0_112-release-b06) bash_profile in your home directory.ĭon't forget to restart the operating system after.Īfter that, running java -version gave this output and Java started to execute normally: openjdk version "1.8.0_112-release" If you're using Catalina and above, you most probably use zsh as a shell instead of bash. Catalina, Big Sur, Mentere and above: export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/Contents/Home.MacOS versions before Big Sur: export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home/.Tags : macos,android-studio,openjdk,java-homeĪdd the correct string to. QUESTION: I don't want to install new JDK if I already have one inside Android Studio. bash_profile doesn't like that it's a directory. Setting $JAVA_HOME to /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home did not help - source. No Java runtime present, try -request to install. It surprised me, because how have I been able to develop Android apps if I didn't have any Java installed?! Actually, Android Studio comes with bundled JDK/JRE (located in /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home), but it is not found by the system: executed usr/libexec/java_home gives Unable to find any JVMs matching version "(null)". I tried to open Android Device Monitor and the Studio showed me this message =-O :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |