Error at add plugin


#1

Greeting,

i try add plugin Cordova-android chrome view. ( https://github.com/thedracle/cordova-android-chromeview )

but, there is a error.

LHCSui-MacBook-Air-2:scdia_android root# ionic plugin add http://github.com/thedracle/cordova-android-chromeview

Fetching plugin "http://github.com/thedracle/cordova-android-chromeview" via git clone
Error: ENOENT, no such file or directory '/tmp/plugman/git/1410006656214/plugin.xml'
    at Object.fs.openSync (fs.js:432:18)
    at Object.fs.readFileSync (fs.js:289:15)
    at Object.module.exports.parseElementtreeSync (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/util/xml-helpers.js:121:27)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js:88:35
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:574:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:419:13)

i tried these commands,

cordova plugin add https://github.com/thedracle/cordova-android-chromeview
plugman install --platform android --project scdia_android --plugin http://github.com/thedracle/cordova-android-chromeview
ionic plugin add android

but result always error: no such file or directory ‘/tmp/plugman/git/1410006656214/plugin.xml’

how can i add plugin from github? (Absolutely, i already installed git)


#2

It looks like the plugin is too old for the current Cordova plugin system. https://github.com/thedracle/cordova-android-chromeview/issues/5

You’ll have to find another plugin to achieve the results you are looking for or fork and update this one.


#3

Thanks, @gnomeontherun.

one more question.

How do I update the Cordova plugin system?


#4

you need to remove then add again . it will update.


#5

i can’t understand your answer @shashikant .

i can’t add cordova-chromeview plugin(because it’s too old plugin to apply my project) , so i can’t remove.


#6

Using following command, you can remove and add plugin.

cordova plugin rm pluginName
cordova plugin add pluginName


#7

i can’t add cordova-webview, so i can’t also remove it.

LHCSui-MacBook-Air-2:scdia_android root# cordova plugin rm https://github.com/thedracle/cordova-android-chromeview
Plugin "https://github.com/thedracle/cordova-android-chromeview" is not present in the project. See `cordova plugin list`.
LHCSui-MacBook-Air-2:scdia_android root# cordova plugin list
com.ionic.keyboard 1.0.2 "Keyboard"
org.apache.cordova.console 0.2.9 "Console"
org.apache.cordova.device 0.2.10 "Device"
LHCSui-MacBook-Air-2:scdia_android root# cordova plugin add https://github.com/thedracle/cordova-android-chromeview
Fetching plugin "https://github.com/thedracle/cordova-android-chromeview" via git clone
Error: ENOENT, no such file or directory '/tmp/plugman/git/1410570200996/plugin.xml'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.readFileSync (fs.js:289:15)
at Object.module.exports.parseElementtreeSync (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/util/xml-helpers.js:121:27)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js:88:35
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:574:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)

i’m wondering if i upgrade cordova plugin system replace plugin files.


#8

Can you try –

cordova plugin rm cordova-android-chromeview


#9

i tried cordova plugin rm cordova-android-chromeview, but it has problems.

Plugin "cordova-android-chromeview" is not present in the project. See 'cordova pugin list'.

#10

Can you upload screen short of plugins folder structure ??


#11

I got this exactly error. Installing plugman solved my issue.

Not sure if you already have it installed:

npm install -g plugman

#12

Thanks for reply, @denisazevedo

but, please read my question once more? i already install plugman.


#13

Hi @sopesewind,
If this isn’t working, you can try to download the Crosswalk from Crosswalk Project and follow this guideline:

Migrate an existing Cordova application to Crosswalk

Although I haven’t had any error installing the plugin you want, it simply not worked here, no errors, nothing.
Then I went to the solution I described above and it’s working now.


#14

Thanks to reply, @denisazevedo

In fact, the reason I was trying to use this plugin, application created by ionic build android is too slow to release application. (especially, if application should support old device (At least Galaxy S))
Before finding this plugin, i already tried Crosswalk Project, GeckoView…etc. but it’s to big size, and unstable.

Finally, i made own android web view application(it contain some web view, so try launch application, web view try to load ionic application(just upload server), and load JSON to list database)

ionic is one of the best framework, but sometime if users want legacy support to application, ionic framework is thought seemed to unsuitable