0
votes

Failed to restore plugin "cordova-plugin-file-transfer" from config.xml. You might need to try adding it again. Error: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "cordova-plugin-file@^5.0.0". Try --force to use installed plugin as dependency.

I am facing above issue while running

ionic cordova run android

on mac. not sure why its giving this issue. I am using android 6.4.0.

1

1 Answers

1
votes

TL;DR: run these commands:

ionic cordova plugin rm cordova-plugin-file --force
ionic cordova plugin add cordova-plugin-file@latest
ionic cordova run android

When you run ionic cordova run android, the Cordova CLI is running a prepare operation which tries to restore any plugins which are present in your config.xml/package.json but not installed in you local project.

So it's trying to install a recent version of cordova-plugin-file-transfer but this is failing because you have v4.3.3 of cordova-plugin-file installed in plugins/ and cordova-plugin-file-transfer now requires v5.0.0+