close

[Solved] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

Hello Guys, How are you all? Hope You all Are Fine. Today I am just installed android studio latest version But I am facing following error Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

I am just installed android studio latest version But I am facing following error.

> Failed to apply plugin ‘com.android.internal.application’.
> Android Gradle plugin requires Java 11 to run.
You are currently using Java 1.8. You can try some of the following options:
– changing the IDE settings.
– changing the JAVA_HOME environment variable.
– changing `org.gradle.java.home` in `gradle.properties`.

How To Solve Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 Error ?

  1. How To Solve Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 Error ?

    To Solve Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 Error Here If the JVM points to version 1.8 then you should change it in settings. You can find it in Preferences.Then Select Build, Execution, Deployment.Select Build Tools.Then, Gradle.Select Gradle JDK to 11. Second solution Go to Download Page.Download the JDK ZIP file of your system. (Let’s say Windows)Extract it in any folder with high permissions under your PC main directoryNow open and Go to your Android studio project structure located at men File* → Project structure.And paste the directory where you unzipped the JDK version here. As you see, mine is JDK 16 as at now and installed in that directory.

  2. Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

    To Solve Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 Error Here If the JVM points to version 1.8 then you should change it in settings. You can find it in Preferences.Then Select Build, Execution, Deployment.Select Build Tools.Then, Gradle.Select Gradle JDK to 11. Second solution Go to Download Page.Download the JDK ZIP file of your system. (Let’s say Windows)Extract it in any folder with high permissions under your PC main directoryNow open and Go to your Android studio project structure located at men File* → Project structure.And paste the directory where you unzipped the JDK version here. As you see, mine is JDK 16 as at now and installed in that directory.

Solution 1: Change Your Gradle JDK to 11

  1. Here If the JVM points to version 1.8 then you should change it in settings.
  2. You can find it in Preferences.
  3. Then Select Build, Execution, Deployment.
  4. Select Build Tools.
  5. Then, Gradle.
  6. Select Gradle JDK to 11.
  7. Now, your error must be solved.

Solution 2: set JDK version

  1. Go to Download Page.
  2. Download the JDK ZIP file of your system. (Let’s say Windows)
  3. Extract it in any folder with high permissions under your PC main directory
  4. Now open and Go to your Android studio project structure located at men File* → Project structure.
  5. And paste the directory where you unzipped the JDK version here. As you see, mine is JDK 16 as at now and installed in that directory.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment