Closed CLIsix closed 2 years ago
JDK 18 is unsupported. You will need to downgrade.
https://docs.gradle.org/current/userguide/compatibility.html
Also, the current released Cordova-Android platform uses Gradle 7.1.1
. The version you have installed globally is not used for building. It is only used for creating the Gradle wrapper of the version Cordova-Android supports.
When looking at the compatibility table above, it shows only up to JDK 16 is supported.
try using different JDK you can specify it in platform/android/gradle.properties (if not exist create a new file) and the jdk version u want to use
....... org.gradle.java.home=/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
Bug Report
Can't build an android app.
Problem
What is expected to happen?
Successful Build?
What does actually happen?
Command or Code
cordova build android
Environment, Platform, Device
Version information
Checklist