It looks like cordova-android expects Java/JDK 1.8 to be installed. But my
understanding is that it should be possible to use a newer OpenJDK version
such as 13. See this thread on Homebrew:
https://discourse.brew.sh/t/gradle-and-jdk-dependency/7969

As I said in that thread, I was able to use OpenJDK 13 with command-line
build on multiple Android projects outside of Cordova, including React
Native. But Cordova would show an error message like this:

Requirements check failed for JDK 8 ('1.8.*')! Detected version: 13.0.2

Another thing is that many build systems are now using a Gradle wrapper,
while Cordova still needs the Gradle tool to be installed in its search
path. This may be related to a nasty-looking issue here:
https://github.com/apache/cordova-android/issues/845

Incidentally if I would add cordova-android from GitHub, then I would be
able to build and run from Android Studio 4.0.0. But this does not seem to
work with current cordova-android@8 version.

I think these observations should be tracked in one or more issues on
GitHub.

Reply via email to