Skip to content
Advertisement

cordova gradle build SUCCESSFUL turns into FAILED

cordova gradle build SUCCESSFUL and then turns into FAILED. Maybe something is wrong with the versions? It seems to download a lower gradle version in the middle… why?

Starting with versions: Gradle 7.3.3, Cordova 10.0.0, Java/JDK 17.0.2 – Here is the transcript (leaving only the main things):

JavaScript

Advertisement

Answer

After struggling for hours to find the correct versions, it appears that the following combination seems to build successfully:

cordova 10.0.0
jdk 11.0.13
Gradle 7.1.1
Android Gradle Plugin 4.2.2

There were many other problems, overcome with the help of other discussions on the web. I kept a record of them, if anyone is interested.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement