Skip to content

How to fix Cordova 9 build errors

Blog Banner

Overview

Dealing with apps developed in an old Neptune version we could have the requirement to use the Cordova 9 engine.

In the build process we can have a series of errors, today I want to share how I solved some of them.

Could not find com.g00fy2:versioncompare:1.3.4

Could not find com.g00fy2:versioncompare error
  • In the Cordova project folder open the following file
\platforms\android\CordovaLib\cordova.gradle
  • Replace the com.g00fy2 with io.github.g00fy2:
import io.github.g00fy2.versioncompare.Version
  • Also in the dependencies at the bottom of the file changing the version to 1.4.0
dependencies { 
    classpath 'io.github.g00fy2:versioncompare:1.4.0@jar'
}

Could not find com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3

Could not find com.jfrog.bintray.gradle:gradle-bintray-plugin error
  • In the Cordova project folder open the following file
\platforms\android\CordovaLib\build.gradle
  • Add a new repository in the buildscript
buildscript {
    repositories {
        google()
        jcenter()
        maven { url 'https://repo.grails.org/grails/core/' }
    }

References

A big thank you to this topics / peoples:

I will update this blog in case of new errors.

Hope this helps

Happy Christmas and New Year to all Neptune community members!