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

38,949

Solution 1

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]

Solution 2

I solved this problem with this command:

cordova platform update android

Note: After that remove your android platform(cordova platform remove android) and add once again android platform(cordova platform add android)

Share:
38,949
dherre3
Author by

dherre3

Updated on October 01, 2020

Comments

  • dherre3
    dherre3 over 3 years

    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!

    • sradforth
      sradforth over 8 years
      What cordova android version are you using in cordova? Have you deleted, upgraded and readded the android platform component as your project may still be using the old version if you haven't done this step.
  • wmfairuz
    wmfairuz over 8 years
    How to check current cordova-android version?
  • Ronak Amlani
    Ronak Amlani over 8 years
    Also we have to add back plugin like cordova plugin add plugin.name Then perfect..
  • Mr. Bungle
    Mr. Bungle over 7 years
    @wmfairuz use cordova platforms to list version of currently installed platforms.
  • Ten Digit Grid
    Ten Digit Grid about 4 years
    How do you fix this within phonegap build?