插件不支持该项目的cordova-android版本. cordova-android:4.1.1,失败的版本要求:> = 5.0.0-dev [英] Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev

查看:568
本文介绍了插件不支持该项目的cordova-android版本. cordova-android:4.1.1,失败的版本要求:> = 5.0.0-dev的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cordova CLI出现问题,当我尝试添加已发布插件的NPM列表中的插件时,出现此错误:

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-android版本.cordova-android:4.1.1,失败的版本要求:> = 5.0.0-dev"

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

我在这里的stackoverflow中看到了这个问题:

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

但这是由于在Github中使用了该版本,推荐的解决方案是使用通过Cordova CLI在npm中发布的版本.

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.

任何帮助将不胜感激!

推荐答案

好,我解决了我的问题,结果cordova于11月9日发布了适用于Android的新稳定版本.我只需要通过以下方式进行更新:

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

这篇关于插件不支持该项目的cordova-android版本. cordova-android:4.1.1,失败的版本要求:> = 5.0.0-dev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆