ChildBrowser icon indicating copy to clipboard operation
ChildBrowser copied to clipboard

Support for cordova-cli - cordova plugin add

Open gauntface opened this issue 11 years ago • 8 comments

Currently, when attempting to install Childbrowser with the command:

cordova plugin add https://github.com/alunny/ChildBrowser.git

I get the following error:

[Error: grafting xml at selector "/cordova/plugins" from "/Users/mattgaunt/Programming/Workspace/device-lab-mobile/platforms/android/res/xml/config.xml" during config install went bad :(]

gauntface avatar Jul 04 '13 12:07 gauntface

subscribe

Romz avatar Jul 13 '13 08:07 Romz

Same problem :-1:

antono avatar Jul 15 '13 19:07 antono

I think the problem is on plugin.xml

    <config-file target="res/xml/config.xml" parent="/cordova/plugins">
        <plugin name="ChildBrowser"
            value="com.phonegap.plugins.childBrowser.ChildBrowser"/>
    </config-file>

try to change /cordova/plugins to /plugins

Romz avatar Jul 15 '13 19:07 Romz

Nope:

[Error: grafting xml at selector "/plugins" from "PRIVATE/platforms/android/res/xml/config.xml" during config install went bad :(]

antono avatar Jul 15 '13 20:07 antono

Did you try to open "PRIVATE/platforms/android/res/xml/config.xml"? config-file markup append its child (here plugin markup) into the targeted file to the "parent" element. Check if there is a plugins element on your res/xml/config.xml

Romz avatar Jul 16 '13 04:07 Romz

I think that your problem is that you must executed this command with root privileges. Try this: #sudo cordova plugin add https://github.com/alunny/ChildBrowser.git

manumartor avatar Oct 05 '13 23:10 manumartor

i have this problem how to solve this?

S0c5 avatar Mar 06 '14 22:03 S0c5

Try this:

cordova plugin add https://github.com/phonegap-build/ChildBrowser#three-dot-x

This will switch to the three-dot-x branch.

JonathanAquino avatar May 15 '14 22:05 JonathanAquino