
If you want to change the icon, see here.File > Save Choose file format Application.Unfortunately, this method requires opening the app from the terminal, but you could always create a script for it.Įdit: And if you really don't want to open it from the terminal:ĭo shell script "export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk open /Applications/Android\\ Studio.app/" You can see which JDK versions you have with: $ ls /Library/Java/JavaVirtualMachines/ You may need to change the 91 in jdk1.8.0_91.jdk to a different version. $ open /Applications/Android\ Studio.app/ Then run the following commands: $ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk If you want to run a specific version you have to specify the environment variable $JAVA_HOME pointing to the path of the version you want to use.For Mac users with this issue (I'm running OS X 10.11.5 and Android Studio 2.1.2), here's how you can solve it:Ĭurrently, the Mac version of Android Studio is run with Java 6 (not necessarily the same as the JDK version for the app), because Java 6 has better font rendering than Java 7 & 8, and that's apparently more important than rendering your layout.įirst of all, make sure you have JDK 8 installed. However, you can instruct it to use a specific version. Instead, it behaves like a proxy binary by default - it finds the latest installed JDK and uses that when executing.

Note: /usr/bin/java is not just a symbolic link to a Virtual Machines /bin/java binary. So starting e.g./gradlew app:assembleRelease from the terminal will use the Java JDK that is currently set. Running java from the terminal runs by default the latest installed version. From time to time you may need a specific version for different projects. If you have read my post about installing and managing updates of your JDK versions with Android Studio you have found an option to install and update the JDK(s) separate from the Android Studio embedded one. Gradle version 7 and above requires JDK version 11 - which is bundled with Android Studio 2020.3.1 Arctic Fox. Manage multiple Java JDK versions on a MacĪs an Android developer, you will most likely have come into contact with Java and its JDK (Java Development Kit).
