Error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin ‘com.android.internal.application’

We Are Going To Discuss About Error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin ‘com.android.internal.application’. So lets Start this Java Article.

Error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin ‘com.android.internal.application’

Advertisements
  1. Error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin 'com.android.internal.application'

    This error happened to me while I was using Jetpack Compose and it required java 11, but I was using java 1.8. So if you cannot find jdk 11 in dropdown that means you have not downloaded it yet, so click download jdk and download 11 and click apply).

  2. Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. -& Failed to apply plugin 'com.android.internal.application'

    This error happened to me while I was using Jetpack Compose and it required java 11, but I was using java 1.8. So if you cannot find jdk 11 in dropdown that means you have not downloaded it yet, so click download jdk and download 11 and click apply).

Solution 1

Advertisements

Well I also face same issue

Image showing same error

What worked for me is this (In Windows 10 OS based Laptop)

Go to File–>Settings–>Build,Execution,Deployment–>Build Tools–>Gradle

Now here –>Gradle JDK change 1.8 to 11(given in dropdown).

See image given to get more clear idea.

Steps to get Answer to given problem

After that just REBUILD YOU PROJECT. It worked for me. (see attached image).
Screen showing every thing is fine now and answer worked properlly.

SO ERROR IS SOLVED AND EVERY THING IS FINE IN PROJECT NOW.

HOPE THIS WORKS FOR YOU TOO! THANKS.

Original Author Of This Content

Solution 2

Advertisements

For Windows -> File-> Settings-> Build,Execution,Deployment-> Build Tools-> Gradle-> Gradle JDK and select java 11

Original Author Of This Content

Solution 3

Advertisements

This error happened to me while I was using Jetpack Compose and it required java 11, but I was using java 1.8. So if you cannot find jdk 11 in dropdown that means you have not downloaded it yet, so click download jdk and download 11 and click apply).

Original Author Of This Content

Conclusion

Advertisements

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment