Cordoba: Cannot find plugin.xml

I am trying to remove this plugin from my Coordova file and I am getting these problems

Error: Cannot find plugin.xml for plugin 'org.apache.cordova.file-transfer'. Please try adding it again. 

This is the cordova command to remove the plugin

 cordova plugin rm cordova-plugin-file-transfer 

Please help why I can not remove this plugin. Thanks you

+12
cordova ionic-framework
source share
4 answers

I ran into this problem while trying to update the plugin.

Start by removing the plugins folder <myapp>/plugins/cordova-plugin-file-transfer , as suggested by this post . If the plugin still cannot be deleted using the cord, edit the 3 json files in <your_app>/plugins and delete all the links to cordova-plugin-file-transfer.

---- removed from android.json ----

 "cordova-plugin-file-transfer": { "PACKAGE_NAME": "com.mycompany.myapp" } 

---- removed from ios.json ----

 "cordova-plugin-file-transfer": { "PACKAGE_NAME": "com.mycompany.myapp" } 

---- removed from fetch.json ----

 "cordova-plugin-file-transfer": { "source": { "type": "registry", "id": "cordova-plugin-file-transfer" }, "is_top_level": true, "variables": {} } 

Cordoba now finds out that the plugin is not installed. This solved my upgrade problem as I was finally able to run cordova plugin add cordova-plugin-file-transfer without getting an error.

+20
source share

First, make sure the plugin is not listed in your config.xml file. Then you can reinstall the platform, for example, for Android, at the command line for your project you enter the following:

cordova platform remove android

cordova platform add android

+7
source share

To add jshaw.fb to the answer, also remove these lines from browser.json

+1
source share

In my Ionic app, I ran into this problem with the cordova-plugin-android-permissions plugin. Just deleting the folder of this plugin from the plugins folder solved my problem

0
source share

All Articles