homerours / cordova-music-controls-plugin

A Cordova plugin displaying music controls in notifications (cordova-plugin-music-controls)
MIT License
155 stars 190 forks source link

Cannot install plugin with cordova-android@7 #131

Open sinedied opened 6 years ago

sinedied commented 6 years ago

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 commented 6 years ago

i have same problem with cordova 8.0.0

fdambrosio commented 6 years ago

there's a workaround?

sinedied commented 6 years ago

@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 commented 6 years ago

I have it installed with

cordova 8 cordova-android 6.4.0

aman-gojariya commented 6 years ago

@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 commented 6 years ago

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