Home › Free tools › Android Studio JDK checker
Free Android dev tool · No signup

Android Studio JDK & Gradle checker which Java version does my project need?

Pick your Android Studio or Android Gradle plugin (AGP) version and see the Gradle version and JDK it needs, with the exact lines to paste. Or paste a build error and get the fix.

Android Studio → AGP → Gradle → JDKBuild error decoderUpdated for AGP 9.5
Find it in Help › About (on Mac: Android Studio › About Android Studio).
Gradle wrapper
AGP version
Java version for your code

Data from the official Android Gradle plugin and Gradle compatibility tables, checked on 1 December 2026.

Do you need to install Java for Android Studio?

No. Android Studio comes with its own JDK, the JetBrains Runtime (JBR), and new projects use it automatically. You only need a separate Java download if you build from a terminal without Android Studio, or if your company requires a specific JDK.

There are three different “Java versions” in an Android project, and most errors come from mixing them up:

  • Gradle JDK – the Java that runs Gradle and the Android Gradle plugin. AGP 8.0 and newer need JDK 17 or newer. Set it in Settings › Build, Execution, Deployment › Build Tools › Gradle › Gradle JDK.
  • Source and target compatibility – the Java language level your code is compiled for (JavaVersion.VERSION_17, jvmToolchain(17)).
  • JAVA_HOME – used when you run ./gradlew in a terminal. Point it to the same JDK as Android Studio to avoid surprises.

AGP, Gradle and JDK versions

AGPMinimum GradleMinimum JDK
9.59.6.017
9.49.6.017
9.39.5.017
9.29.4.117
9.19.3.117
9.09.1.017
8.11 – 8.138.1317
8.9 – 8.108.11.117
8.88.10.217
8.78.917
8.5 – 8.68.717
8.48.617
8.38.417
8.28.217
8.0 – 8.18.017
7.47.511
7.0 – 7.37.0 – 7.411

Newest Java each Gradle version can run on

JavaGradle needed to run on it
177.3 or newer
218.5 or newer
238.10 or newer
248.14 or newer
259.1.0 or newer
269.4.0 or newer

Gradle 9 itself needs at least Java 17 to run. If you see Unsupported class file major version 65, subtract 44 to get the Java version (65 → Java 21): your Gradle is too old for that JDK.

Minimum AGP for each compileSdk

API levelMinimum Android StudioMinimum AGP
37Panda 3 (2025.3.3) Patch 19.1.1
36.1Narwhal 3 Feature Drop (2025.1.3)8.13.0
36Meerkat (2024.3.1) Patch 18.9.1
35Koala Feature Drop (2024.1.2)8.6.0
34Hedgehog (2023.1.1)8.1.1

New to Android Studio? Start with our guide to downloading and installing Android Studio on Windows 11 and our Android Studio, JDK and SDK setup guide, then follow the free Kotlin course.

More free tools you may like

See all 99 free tools →

Frequently asked questions

Which JDK version does Android Studio need?

Android Studio ships with its own JDK (JetBrains Runtime), so you do not need to install one. For building, Android Gradle plugin 8.0 and newer need JDK 17 or newer; AGP 7.x needs JDK 11. JDK 17 or 21 works for almost every current project.

Do I need to download Java separately for Android Studio?

No. The bundled JetBrains Runtime is used by default for both the IDE and Gradle. Install a separate JDK only if you build from a terminal without Android Studio or your team requires a specific vendor.

How do I change the JDK in Android Studio?

Open File › Settings (Android Studio › Settings on Mac) › Build, Execution, Deployment › Build Tools › Gradle and choose a JDK under Gradle JDK. GRADLE_LOCAL_JAVA_HOME uses the bundled JetBrains Runtime. Sync the project afterwards.

How do I fix “Android Gradle plugin requires Java 17 to run”?

Your Gradle JDK is older than 17. Set Gradle JDK to 17 or newer in the Gradle settings above, and if you build in a terminal, set JAVA_HOME to the same JDK.

What does “Unsupported class file major version 65” mean?

Subtract 44 from the number to get the Java version: 65 is Java 21, 69 is Java 25. It means your Gradle version is too old to run on that Java. Update Gradle (Java 21 needs Gradle 8.5+, Java 25 needs 9.1+) or pick an older Gradle JDK.

Can I use JDK 25 with Android Studio?

Yes, if your Gradle version supports it. Gradle 9.1.0 or newer can run on Java 25, which means AGP 9.0 or newer in practice. Older projects should stay on JDK 17 or 21.

Which Android Studio do I need for AGP 9?

AGP 9.0 needs Android Studio Otter 3 Feature Drop (2025.2.3) or newer. AGP 9.5, the newest version when we checked (December 2026), needs Android Studio Rabbit 2 (2026.2.2).

Stuck on a build error?

We build and fix Android apps for clients worldwide – clear scope, fixed price, fast delivery.

Techpass Master Technologies · Websites, Android apps and digital marketing

WhatsApp us📞 Call now