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).
0 Comments
Leave a Reply. |