Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for cordova-cli - cordova plugin add #35

Open
gauntface opened this issue Jul 4, 2013 · 8 comments
Open

Support for cordova-cli - cordova plugin add #35

gauntface opened this issue Jul 4, 2013 · 8 comments

Comments

@gauntface
Copy link

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
Copy link

Romz commented Jul 13, 2013

subscribe

@antono
Copy link

antono commented Jul 15, 2013

Same problem 👎

@Romz
Copy link

Romz commented Jul 15, 2013

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
Copy link

antono commented Jul 15, 2013

Nope:

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

@Romz
Copy link

Romz commented Jul 16, 2013

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
Copy link

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
Copy link

S0c5 commented Mar 6, 2014

i have this problem how to solve this?

@JonathanAquino
Copy link

Try this:

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants