This message was deleted.
# community-support
s
This message was deleted.
v
You run Gradle with Java 8, but the AGP version you use requires that you run Gradle with at least Java 11
i
how can I configure that, cordova actually needs java 8 so that is confgured, how do I configure gradle using java 11?
v
I have no idea what Cordova is, or what it needs, I just interpreted your error message for you. If Cordova runs the Gradle build, check with Cordova how to change it. If you run Gradle yourself using the wrapper, then
JAVA_HOME
is used and if not set, the
java
found on the
PATH
.
i
Cordova is a build tool for hybrid mobile apps (html/css/js -> native android/ios code) and it is responsible for running gradle in the process of building an android bundle, so it must be at the gradle level. Thank you for the support anyhow, I will look at the gradle configuration.
v
If Cordova is "responsible for running gradle", then it is at Cordova level, because whoever executes Gradle controls with which Java version Gradle is run. And that must be at least Java 11 when using that Android Gradle Plugin version. :-)
1