Since quite a while, I am facing a strange phenomenon. If I do a
meteor reset and then
meteor run android-device, everything works fine. But as soon as I try the
meteor run android-device for the second time, I only get this error message:
% "cordova-plugin-file" is required by (cordova-plugin-file-transfer) and cannot be removed (hint: use -f or --force) and cannot be removed (hint: use -f or --force) => Errors executing Cordova commands: While removing plugins com.concats.cordova-plist-patches,com.meteor.cordova-update,com.percolatestudio.cordova.safereload,com.tokbox.cordova.opentok,cordova-plugin-compat,cordova-plugin-console,cordova-plugin-device,cordova-plugin-file,cordova-plugin-file-transfer,cordova-plugin-globalization,cordova-plugin-legacy-whitelist,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-insomnia,cordova-plugin-camera,phonegap-plugin-push from Cordova project: Cordova error: Cannot find plugin.xml for plugin 'cordova-plugin-compat'. Please try adding it again. (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.)
This can only be resolved by running
meteor reset again, but in this case I lose my database contents and all plugins have to be downloaded again - which, in my case, takes very long due to the size of one of the plugins.
Has anybody experienced such problems? Note: I’m still using Meteor 1.2, since one of the plugins is not compatible with Meteor 1.3.
EDIT: Some additional info. Each time this error occurs, the meteor process keeps running in the background and I have to kill -9 it.