alunny / ChildBrowser

cross-platform ChildBrowser plugin for PhoneGap/Cordova
104 stars 134 forks source link

Support for cordova-cli - cordova plugin add #35

Open gauntface opened 10 years ago

gauntface commented 10 years ago

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 :(]

Romz commented 10 years ago

subscribe

antono commented 10 years ago

Same problem :-1:

Romz commented 10 years ago

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

antono commented 10 years ago

Nope:

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

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

manumartor commented 10 years ago

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

S0c5 commented 10 years ago

i have this problem how to solve this?

JonathanAquino commented 10 years ago

Try this:

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

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