Skip to content

bug: The project's Gradle version Gradle 8.14.3 is incompatible with the Gradle JVM version 25. To fix this, select a JVM version that is at least 8 and at most 24. #8705

Open

Description

@edocbuhtig

Prerequisites

Ionic Framework Version

v9.x

Current Behavior

Create a new blank starter app using ionic start cli command
The starter app is created without any issues
Then run,
ionic cap build
to generate www folder to add the android platform
android @capacitor/android@8.6.0 platform is added with any issues
Then run
ionic cap open android
This opens Android Studio with JVM Version ERROR upgrade to v21 click update the update button,it fails to upgrade in Android Studio Rabbit 1 2026

Expected Behavior

The ionic cap open Android must open Android Studio with background gradle build this was wrking before in ionic v8 capacitor v6.

Steps to Reproduce

Create a new blank starter app using ionic start cli command
The starter app is created without any issues
Then run,
ionic cap build
to generate www folder to add the android platform
android @capacitor/android@8.6.0 platform is added with any issues
Then run
``
ionic cap open android

Code Reproduction URL

https://github.com/edocbuhtig

Ionic Info

Capacitor:

Capacitor CLI : 8.6.0
@capacitor/android : 8.6.0
@capacitor/core : 8.6.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 2.1.0

System:

NodeJS : v26.13.0 (/usr/local/bin/node)
npm : 11.20.0
OS : macOS: 27.2

Additional Information

Another, observation is that the Cordova packages are still shown in the Android Studio as external libraries though it is a ionic v9 capacitor v8 project ???? unlike for iOS its a SPM package by default.

This is very frustrating being a Ionic fan since the PhoneGap Days and forcing me to switch to (KMP) Jet Pack Compose from now on.

@thetaPC

Activity

  1. ShaneK commented on Nov 9, 2026

    @ShaneK
    Member

    Hey @edocbuhtig! Sorry you ran into this, that's a frustrating on a new project for sure. The Gradle version and the capacitor-cordova-android-plugins module both come from the Android project that @capacitor/android generates, so this isn't something we can fix in Ionic Framework. I'm going to transfer this over to the Capacitor repo so the right team can take a look.

    In the meantime, I think pointing Android Studio's Gradle JDK at JDK 21 (Settings > Build, Execution, Deployment > Build Tools > Gradle) should get you building again, since Gradle 8.14.3 doesn't support the JDK 25 that ships with Android Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions