Cordova plugin file transfer and media capture conflict


#1

i try to build android using ionic cordova build --release android , the problem is i got the first error saying

Failed to restore plugin “cordova-plugin-media-capture” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “cordova-plugin-file@5.0.0” does not satisfy dependency plugin requirement “cordova-plugin-file@^4.0.0”. Try --force to use installed plugin as dependency.

i try downgrade cordova-plugin-file to version 4.0.0, but i got the second error saying

Failed to restore plugin “cordova-plugin-file-transfer” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “cordova-plugin-file@4.0.0” does not satisfy dependency plugin requirement “cordova-plugin-file@>=5.0.0”. Try --force to use installed plugin as dependency.

when i upgrade to cordova-plugin-file to 5.0.0, the first error comes up again


#2

Any solution yet? I am facing the same issue


#3

The file transfer plugin has been EOLed. You don’t need it and shouldn’t be using it.


#4
  • Tried removing the plugin by cordova plugin rm [plugin_name].

  • Removed android platform and then added it again but the plugin installs again.

Any idea how this couldbe removed?


#5

Make sure it’s not remaining in package.json and/or package-lock.json.