Skip to content
Latchkey

Cordova "Gradle version ... required" mismatch in CI

cordova-android builds with Gradle and the Android Gradle Plugin. When the runner has an older Gradle than the plugin requires, the build fails reporting the minimum supported Gradle version. Cordova can also provision its own Gradle if allowed.

What this error means

cordova build android fails with "Minimum supported Gradle version is X.Y. Current version is A.B" from the Android Gradle Plugin.

Gradle
Minimum supported Gradle version is 8.0. Current version is 7.4.
Please fix the project's Gradle settings.

Common causes

The runner Gradle is older than required

A globally installed older Gradle on the runner does not meet the Android Gradle Plugin minimum, so the build is rejected.

cordova-android version expects a newer Gradle

A newer cordova-android pins a newer AGP that mandates a higher Gradle, which the current toolchain does not satisfy.

How to fix it

Use a compatible Gradle version

  1. Install the Gradle version cordova-android requires, or let it download one.
  2. Avoid forcing an older global Gradle.
  3. Re-run the Android build.
.github/workflows/ci.yml
- uses: gradle/actions/setup-gradle@v3
  with:
    gradle-version: '8.7'
- run: npx cordova build android

Align cordova-android with the toolchain

Pin a cordova-android version whose AGP and Gradle requirements match what you provision in CI.

Terminal
npx cordova platform add android@13.0.0

How to prevent it

  • Match Gradle, AGP, and cordova-android versions deliberately.
  • Let cordova provision Gradle or pin a compatible one.
  • Avoid a stale global Gradle on the runner.

Frequently asked questions

What causes ""Minimum supported Gradle version""?
A globally installed older Gradle on the runner does not meet the Android Gradle Plugin minimum, so the build is rejected.
How do I fix "Minimum supported Gradle version"?
Use a compatible Gradle version

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card