Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev

I have a problem with cordova CLI, when I try to add a plugin which is in the NPM list of published plugins I get this error:

"Plugin doesn't support this project's cordova-android version. cordova- android: 4.1.1, failed version requirement: >=5.0.0-dev"

I saw this problem in stackoverflow here:Cordova-plugin-camera is not being loaded; failed version requirement for cordova-android version: >5.0.0-dev

But this was due to using the version in Github and the recommended solution was to use the version published in npm via the Cordova CLI which is what I have been doing.

Any help would be appreciated!

like image 581
dherre3 Avatar asked Nov 25 '15 16:11

dherre3


People also ask

How do I update Cordova to latest version?

Update Cordova CLI, cordova Then compare the returned version number to the output of npm info cordova version (You can also check manually for the newest available version on npm or GitHub). Run cordova -v again after the update to make sure the update worked and it now returns the current version.

Is android 12 supported by cordova?

We have integrated the Android 12 SplashScreen API including the compatibility library into the core of the Cordova-Android platform to provide support for Android API 22+. For more information, please refer to the PR and Cordova Docs.

How do I find Cordova version on Mac?

If you want to check the version of cordova, you can simply check it from the below command: cordova --version.


1 Answers

Ok, I solved my problem, turns out cordova released a new stable version for Android November 9th. I just had to updated via:

    $cordova platform update [email protected]
like image 111
dherre3 Avatar answered Sep 20 '22 11:09

dherre3