How to fix error: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

preview_player
Показать описание

What changed is the JDK used to run Gradle. By default, this is the version embedded in Studio (when running builds from inside the IDE, for command-line builds, this is whatever you have set up in your terminal). 4.2 embeds (and runs on) JDK11 already even if AGP 4.2 can run on JDK8."

References:

Studio 2020.3.1 embeds JDK11 and the matching AGP 7.0.0 requires 11 too.

📚 Learn Android from Experts at:

😎 Find more Awesome Android Apps in Kotlin, MVVM, Jetpack:

📱 Follow us on:

⭐ Discord:

⭐ GitHub:

⭐ Twitter:

⭐ Instagram:

⭐ Medium:
Комментарии
Автор

great music to listen while we solve the problem. Thanks!

jorgecasariego
Автор

The music matches the video as I triumphantly fix my error. Bless!

briankipkoros
Автор

I was wondering and you just solved my issue, thanks a lot.

mehboobkhan
Автор

it keeps on loading while i open gradle to change the use gradle from

shannoori
Автор

Thumbs up for saving me a ton of grief! Thank you!!!

ChicoRasia_CLabs
Автор

The place where u show, Gradle jdk, that place is empty in my case, can u help me Please

saswatighosh
Автор

Hey, From studio its fine. But all gradle commands from command line fails.
any idea how to fix that?

nitinverma
Автор

And waht if I wanna use java 8 instead of java 11. Is there an other configuration I should do?

bipbipbop
Автор

I don't even have that gradle option in my project. Using IDEA

theplaymakerno
Автор

thanks great hepl cant be reading them stack over flow fourms

dexstermm
join shbcf.ru