

It's my assumption that Gradle Settings page pulls up all the installed Gradle JDK versions. If you notice Gradle JDK is installed under Applications/Android Studio/Content/ This is what I was seeing in Arctic Fox Gradle Settings.

Both Android Studio had different Gradle JDK version installed. I had two versions of Android Studio installed Android 4.2 and Android Arctic Fox. Just delete the other version and it should fix the problem. Multiple Android Studio Installed? Short Answer:

NOTE: Do not place your application dependencies here they belong Top level adle // Top-level build file where you can add configuration options common to all sub-projects/modules.Ĭlasspath ":gradle:7.0.3"Ĭlasspath ":kotlin-gradle-plugin:1.5.31" Implementation ':glide:4.12.0'ĪnnotationProcessor ':compiler:4.12.0' Implementation 'nstraintlayout:constraintlayout:2.1.2'ĪndroidTestImplementation ':junit:1.1.3'ĪndroidTestImplementation ':espresso-core:3.4.0' Implementation 'androidx.appcompat:appcompat:1.4.0' TargetCompatibility JavaVersion.VERSION_1_8 SourceCompatibility JavaVersion.VERSION_1_8 ProguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' Invalid cache /restart a bunch of time does nothing How to set it once and apply it to all future new projects? Things I tried: changed the JAVA_HOME env to the location for JDK 11 here, but still get the same error. I have 11 available, AS just doesn't automatically use it. When I create a new project, Android Studio automatically uses default 1.8 again. You are currently using Java 1.8" to change the Gradle JDK in settings work. The answers from Error message "Android Gradle plugin requires Java 11 to run. changing the JAVA_HOME environment variable. You can try some of the following options: > Android Gradle plugin requires Java 11 to run.

Getting this message when I click run: > Failed to apply plugin ''.
