Cordoba-plugin-camera does not load; Version error for corova-android version:> 5.0.0-dev

I am using Netbeans 8 to create a Cordova application (and I'm new to it) using the standard method of selecting standard plugins to use through the Netbeans cordova configuration. When I build on Netbeans, the build will succeed, but the camera plugin will be removed. The build output says:

Installing "cordova-plugin-camera" for Android Current command: cmd "/ s / c" C: \ test \ platform \ android \ cordova \ version.bat "" The command completed with error code 0: cmd / s / c "C : \ test \ platform \ android \ cordova \ version.bat "The plugin does not support this version of the cordo-android version of the project. Cordoba Android: 4.1.1, failed version:> = 5.0.0-dev

My version of Cordova is 5.3.3, and my cordova-android platform is 4.1.1. No 5.0.0-dev Cordova android platform, so I'm confused!

When I look at the github repository from which netbeans are pulled, there is the following in the plugin.xml file:

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

Will this be a problem and is it a storage problem? I would try to avoid the repository and save it locally and change this line to 4.1.1 and try, but I cannot figure out how to get around get from the repository (im completely new at the same time)

any help appreciated!

+1
source share
1 answer

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

When we are preparing for the release of cordova-android 5.0, we make changes to the plugins to support it: https://github.com/apache/cordova-plugin-camera/commit/2714060b09c4d2765cf924d22f80a74d2502530f

Using the lead github branch is not recommended for using plugins, as it is subject to stability issues like this.

Aimed at using npm, which publishes a cord-plugin camera. For example, using the CLI cordova, you can enter:

 cordova plugin add cordova-plugin-camera 

-Nikhil

+1
source

Source: https://habr.com/ru/post/1236828/


All Articles