How I can change JDK location for my project? I us...
# android
i
How I can change JDK location for my project? I use Android Studio Canary version and there is no option to change it in project structure tab.
z
maybe this?
i
Yeah, I tried to set new JDK location but it didn't applied. Any suolution why I can't change location for that project? Path doesn't contain a whitespace. Should I change something in gradle?
Zrzut ekranu 2021-05-19 075235.png
As you can see there are two diffrent JDK's displayed
n
You can add an attribute for Java home to
gradle.properties
org.gradle.java.home=<path>
❤️ 1
i
I did it and it works. What means that <16> next to path of jdk? II use JDK 11 so I don't understand why there is 16
n
Sorry where is it?
ahh I see, I don’t have an idea
i
Okay
Thank you
n
you can also add that java home property in global
gradle.properties
. With this, you won’t have to deal for each project. Now this is for only that project
j