How can I set the new path for Java JDK? I tried to change the environment variables but it did not work.
IDE: Android Studio Arctic Fox | 2020.3.1 Beta 4
IDE: Android Studio Bumblebee | 2021.1.1
File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle
Gradle JDK
fieldApply
changesNB: If you haven't Java environment on your PC, go to https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html and download Java jdk for your platform.
NB2: It's JDK for your Gradle, not for your source code compiler (!)