[英]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:我在使用cordova CLI 时遇到问题,当我尝试添加位于已发布插件的 NPM 列表中的插件时,出现此错误:
"Plugin doesn't support this project's cordova-android version. cordova- android: 4.1.1, failed version requirement: >=5.0.0-dev" “插件不支持该项目的cordova-android版本。cordova-android:4.1.1,版本要求失败:>=5.0.0-dev”
I saw this problem in stackoverflow here: Cordova-plugin-camera is not being loaded;我在这里的 stackoverflow 中看到了这个问题: Cordova-plugin-camera is not being loaded; failed version requirement for cordova-android version: >5.0.0-dev cordova-android 版本的失败版本要求:>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.但这是由于使用 Github 中的版本,推荐的解决方案是使用通过 Cordova CLI 在 npm 中发布的版本,这正是我一直在做的。
Any help would be appreciated!任何帮助,将不胜感激!
Ok, I solved my problem, turns out cordova released a new stable version for Android November 9th.好的,我解决了我的问题,结果cordova 于11 月9 日发布了适用于Android 的新稳定版本。 I just had to updated via:我只需要通过以下方式更新:
$cordova platform update android@5.0.0
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)注意:之后删除您的android平台(cordova platform remove android)并再次添加android平台(cordova platform add android)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.