OiO.lk Blog Android How do I set GRADLE_LOCAL_JAVA_HOME?
Android

How do I set GRADLE_LOCAL_JAVA_HOME?


Whenever I open an existing Android project in Android Studio for the first time, Android Studio sets the Gradle JDK to GRADLE_LOCAL_JAVA_HOME which points to the Android Studio’s built-in JDK. I would like GRADLE_LOCAL_JAVA_HOME to point to a different JDK location (the same that I use in my JAVA_HOME and the one I have in PATH) but I can’t figure out how to do it.

It’s annoying that whenever I open a project I get a wrong JDK by default and I must open the settings and choose the one under JAVA_HOME manually. I would like Android Studio to pick up my custom default automatically instead.




You need to sign in to view this answers

Exit mobile version