html5video Cordova android plugin won't install error using CLI -
using cli install plugin error appears:
cordova plugin add https://github.com/jaeger25/html5video.git failed install 'jaeger.html5video':error: expected fetched plugin have id "org.apache.cordova.device" got "cordova-plugin-device". @ checkid (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:163:15) @ /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:147:9 @ _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) @ self.promisedispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30) @ promise.promise.promisedispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13) @ /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44 @ flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17) @ process._tickcallback (node.js:442:13) error: expected fetched plugin have id "org.apache.cordova.device" got "cordova-plugin-device". @ checkid (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:163:15) @ /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:147:9 @ _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) @ self.promisedispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30) @ promise.promise.promisedispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13) @ /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44 @ flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17) @ process._tickcallback (node.js:442:13)
does have solution this?
i installed plugin without issue
$ cordova -v 4.3.0 $ cordova plugin jaeger.html5video 1.2.1 "html5video" org.apache.cordova.device 0.3.0 "device"
the latest cordova cli version 5.0 includes breaking changes. core plugins available through npm, , ids have been modified follow npm conventions. org.apache.cordova.device
has become cordova-plugin-device
. i'm guessing issue
in html5video git repo, plugin.xml specifies dependency old id.
<dependency id="org.apache.cordova.device" url="https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" commit="master" subdir="." />
i guessing have cordova-cli 5.0 installed , finding latest version of device dependency new cordova-plugin-device
id.
the html5video plugin.xm needs update id of device dependency. can fork html5videp repo , update dependency
<dependency id="cordova-plugin-device" url="https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" commit="master" subdir="." />
then
cordova plugin add http://url/to/your/repo/html5video.git
you might alternatively able specify version on repo url version of device plugin html5video plugin expects
<dependency id="org.apache.cordova.device" url="https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git@0.3.0" commit="master" subdir="." />
Comments
Post a Comment