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

╄→尐↘猪︶ㄣ 提交于 2019-11-30 02:18:18

问题


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!


回答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 android@5.0.0



回答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)



来源:https://stackoverflow.com/questions/33921935/plugin-doesnt-support-this-projects-cordova-android-version-cordova-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!