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’
- 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).
- 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
Well I also face same issue
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.
After that just REBUILD YOU PROJECT. It worked for me. (see attached image).
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
For Windows -> File-> Settings-> Build,Execution,Deployment-> Build Tools-> Gradle-> Gradle JDK and select java 11
Original Author Of This Content
Solution 3
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
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.