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

Cannot install plugin with cordova-android@7 #131

Open
sinedied opened this issue Jul 5, 2018 · 6 comments
Open

Cannot install plugin with cordova-android@7 #131

sinedied opened this issue Jul 5, 2018 · 6 comments

Comments

@sinedied
Copy link

sinedied commented Jul 5, 2018

Whenever I try to install this plugin with Cordova 8 / cordova-android@7.1.0, I get this error:

Failed to install 'cordova-plugin-music-controls': Error: Unable to graft xml at selector "/manifest/application" from "/Users/noda/projects/hadra-trance-festival/platforms/android/app/src/main/res/xml/config.xml" during config install
    at ConfigFile_graft_child [as graft_child] (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:120:19)
    at PlatformMunger_apply_file_munge [as apply_file_munge] (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:83:34)
    at munge_helper (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:238:14)
    at PlatformMunger.add_plugin_changes (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:164:12)
    at /Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:126:25
    at _fulfilled (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/q/q.js:816:13)
    at /Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/q/q.js:877:14
    at runSingle (/Users/noda/projects/hadra-trance-festival/platforms/android/cordova/node_modules/q/q.js:137:13)
Failed to restore plugin "cordova-plugin-music-controls" from config.xml. You might need to try adding it again. Error: Error: Unable to graft xml at selector "/manifest/application" from "/Users/noda/projects/hadra-trance-festival/platforms/android/app/src/main/res/xml/config.xml" during config install

Any ideas?

@cnttech
Copy link

cnttech commented Jul 8, 2018

i have same problem with cordova 8.0.0

@fdambrosio
Copy link

there's a workaround?

@sinedied
Copy link
Author

@fdambrosio I reverted to cordova 7.1.0 and cordova-android 6.4.0 to make it work, but no workaround for updated versions.

@lethak
Copy link

lethak commented Jul 12, 2018

I have it installed with

cordova 8
cordova-android 6.4.0

@aman-gojariya
Copy link

@sinedied , @cnttech I have installed it with Cordova 8.0.0 and android 6.3.0.
Can you downgrade your android version and check it?

@sinedied
Copy link
Author

Yes, it seems more related to the cordova-android upgrade than the cordova version, I'll rename the issue.

@sinedied sinedied changed the title Cannot install plugin with cordova 8 Cannot install plugin with cordova-android@7 Jul 25, 2018
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

5 participants