@dtslvr wrote:
Hi guys,
In my
package.json
file I have the following plugins:... "cordovaPlugins": [ "cordova-plugin-device", "cordova-plugin-console", "cordova-plugin-geolocation", "cordova-plugin-whitelist", "cordova-plugin-splashscreen", "com.ionic.keyboard", { "locator": "https://github.com/phonegap-build/PushPlugin.git", "id": "com.phonegap.plugins.PushPlugin" }, { "locator": "https://github.com/driftyco/ionic-plugins-deploy", "id": "ionic-plugin-deploy" }, "de.appplant.cordova.plugin.local-notification", "cordova-plugin-inappbrowser", "cordova-plugin-x-socialsharing", "cordova-plugin-statusbar" ], "cordovaPlatforms": [ "ios", "android" ]
As soon as I run the command
ionic state reset
, it adds"cordova-plugin-statusbar@^2.0.0", "cordova-plugin-inappbrowser@^1.0.1"
So these plugins are defined twice, once without and once with the version. I don't know where this is coming from. The statusbar plugin is not even the newest one (2.1.0).
When I run
ionic state reset
again, I get the following error:Error executing "cordova plugin add cordova-plugin-splashscreen": Fetching plugin "cordova-plugin-splashscreen" via npm Installing "cordova-plugin-splashscreen" for android Error during processing of action! Attempting to revert... Failed to install 'cordova-plugin-splashscreen':Error: Uh oh! "/Users/user/Documents/dev/app/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java" already exists!
It's not always the splashscreen plugin, the error varies "randomly".
How can I clean my
package.json
file, that it works again with my plugins?Thank you very much and kind regards,
Thomas
Posts: 3
Participants: 2