I was able to fix the issue by changing the order of the repositories here:
/platforms/android/CordovaLib/build.gradle
from this:
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
to this:
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}