I use android studio ladybug 24.2.1 In this version، GDK v-21 is Build-in
how to change JDK for Android Studio from 21 to jdk 17.
JDK for Android toolchain is 17 and Android Studio is 21 .I want to make both jdk 17
[screenshot][1] [1]: https://i.sstatic.net/82kqlmGT.png
2
Answers
Check Installed JDKs, Ensure the desired JDK version is installed.
Open Android Studio Preferences
Open Android Studio.
Go to Preferences -> Navigate to JDK Settings
In the Preferences window, go to:
Build, Execution, Deployment > Build Tools > Gradle. Change the JDK Path
Under "Gradle JDK," click the dropdown and select your desired JDK version.
I had a similar issue with not being able to set it via studio so the easiest way