Home › Build error fixes › Android / Gradle

Wrong Java (JDK) version

Android / Gradle · last reviewed 2026-11-10

The error looks like this

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

Why it happens

Gradle/AGP needs a specific JDK (JDK 17 for most RN projects).

How to fix it

  1. Install JDK 17 (e.g. Azul Zulu 17).
  2. Set JAVA_HOME to it, or org.gradle.java.home in gradle.properties.
  3. CI: actions/setup-java with java-version: 17.

Not sure this is your error? Let ReleaseMedic read the whole log

Build logs are long and the last line is rarely the real cause. ReleaseMedic finds the first real error, explains it and gives the steps — free, and the log never leaves your computer.

$ npx releasemedic log build.log

Or pipe a build straight in: cd android && ./gradlew bundleRelease 2>&1 | npx releasemedic log -

Catch it before you build

Most release errors come from project settings you can check in seconds — signing, SDK levels, privacy manifests, permissions, push and login setup.

$ npx releasemedic

Related Android / Gradle errors