I am trying to rebuild my app and deploy to Phonegap after upgrading a plugin from an earlier version. I am now getting the following error while compiling:
Fetching plugin "cordova-plugin-mauron85-background-geolocation@2.3.6" via npm
Installing "cordova-plugin-mauron85-background-geolocation" at "2.3.6" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0**
Skipping 'cordova-plugin-mauron85-background-geolocation' for android
I have tried updating the config XML section with the following settings to attempt to increase the cordova android version - to no avail. Does anyone know how to do this?
It seems like I am unable to control the build version of cordova used no matter what I do. Is this an AppStudio issue or a phonegap issue. I have posted this issue there as well and found a number of posts with the exact same error - no answers to any of them. Do they even monitor this anymore?
Installing "cordova-plugin-mauron85-background-geolocation" at "2.3.6" for android Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0
Finally found a reply on phonegap, someone apparently uploaded some incorrect packages to jcenter and it has caused this issue. It is a known issue in cordova and there is a general solution being worked on, so it is not an issue caused by build. This has been an issue for over 3 days now, doesn’t look like they are in any hurry to fix.
I also found an article that fixed my issue - I changed the phonegap version in my project properties and that fixed my problem.
This page helped me - the default build is in bold and it was controlling my cordova build version. Once I changed my phonegap version to “cli-7.1.0” the issue was resolved.