科尔多瓦-plugin的摄像头没有被加载;对科尔多瓦,Android版本没有版本要求:> 5.0.0-dev的 [英] Cordova-plugin-camera is not being loaded; failed version requirement for cordova-android version: >5.0.0-dev

查看:127
本文介绍了科尔多瓦-plugin的摄像头没有被加载;对科尔多瓦,Android版本没有版本要求:> 5.0.0-dev的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用NetBeans 8打造科尔多瓦的应用程序(和是新来的吧)使用选择标准插件通过Netbeans的科尔多瓦配置使用的标准方法。当我建立在NetBeans中,构建成功,但相机插件被移除。构建输出说道:

I'm using Netbeans 8 to build Cordova app (and am new to it) using the standard method of selecting the standard plugins to use through the Netbeans cordova config. When I build on Netbeans, the build is successful but the camera plugin is removed. The build output says:

为Android安装科尔多瓦 - 插件相机
运行命令:CMD/ S / CC:\\测试\\ \\平台的Andr​​oid \\科尔多瓦\\ version.bat
命令完成了错误code 0:CMD / S / CC:\\测试\\ \\平台的Andr​​oid \\科尔多瓦\\ version.bat
插件不支持该项目的科尔多瓦 - Android版本。科尔多瓦-的Andr​​oid 4.1.1,未能版本要求:> = 5.0.0-dev的

Installing "cordova-plugin-camera" for android Running command: cmd "/s /c "C:\test\platforms\android\cordova\version.bat"" Command finished with error code 0: cmd /s /c "C:\test\platforms\android\cordova\version.bat" Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev

我的科尔多瓦版本5.3.3是和我的科尔多瓦 - android平台4.1.1是。有没有5.0.0-dev的科尔多瓦android平台的,所以我很困惑!

My Cordova version is 5.3.3 and my cordova-android platform is 4.1.1. There is no 5.0.0-dev Cordova android platform so I am confused!

当我看从哪个NetBeans是拉GitHub的信息库,plugin.xml中确实有这样几种:

When I look on the github repository from which netbeans is pulling, the plugin.xml does have this listed:

  <engine name="cordova-android" version=">=5.0.0-dev" />

这会成为问题,是与资料库的问题吗?我会尽量避免资源库,本地存储和更改行4.1.1,并给它一个尝试,但我无法弄清楚如何从库中忽略get(IM在这个全新)

Would this be the problem, and is that an issue with the repository? I would try to avoid the repository and store locally and change that line to 4.1.1 and give it a try, but I can't figure out how to bypass the get from the repository (im totally new at this)

任何帮助AP preciated!

any help appreciated!

推荐答案

看起来你使用相机插件的主分支从这里:的 https://github.com/apache/cordova-plugin-camera

It looks like you are using the 'master' branch of the camera plugin from here: https://github.com/apache/cordova-plugin-camera

在我们为科尔多瓦-的是Android 5.0的,我们正在改变插件来支持它发布prepare:<一href=\"https://github.com/apache/cordova-plugin-camera/commit/2714060b09c4d2765cf924d22f80a74d2502530f\" rel=\"nofollow\">https://github.com/apache/cordova-plugin-camera/commit/2714060b09c4d2765cf924d22f80a74d2502530f

As we prepare for cordova-android 5.0's release we are making changes to plugins to support it: https://github.com/apache/cordova-plugin-camera/commit/2714060b09c4d2765cf924d22f80a74d2502530f

使用GitHub的主分支是不推荐的方法消耗的插件,很容易出现这样的稳定​​性问题。

Using the github master branch is not recommended way to consume plugins as it is prone to stability issues like this.

该指南是使用的地方科尔多瓦 - 插件相机发布NPM。例如,使用科尔多瓦CLI可以键入:

The guidance is to use npm where cordova-plugin-camera is published. For example, using the cordova CLI you can type:

cordova plugin add cordova-plugin-camera

-Nikhil

-Nikhil

这篇关于科尔多瓦-plugin的摄像头没有被加载;对科尔多瓦,Android版本没有版本要求:&GT; 5.0.0-dev的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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