I have package.json like this,
"cordovaPlugins": [ "com.ionic.keyboard", "org.apache.cordova.camera", "org.apache.cordova.console", "org.apache.cordova.device", "org.apache.cordova.dialogs", "org.apache.cordova.file", "org.apache.cordova.file-transfer", "org.apache.cordova.geolocation", "org.apache.cordova.network-information", "org.apache.cordova.splashscreen", "cordova-plugin-whitelist", ], "cordovaPlatforms": [ "ios", "android" ]
There is no plugin and platform directory in the project root directory when I exit the repository. so I run the "ion add android platform" which will create a platform directory and install the plugin.
But this will not work until I launch the “ionic platform rm android” and then “the ionic platform adds android”, suddenly it works fine.
What does it mean? and how to solve this, so the next developer can pull out the repo and directly make it work just by running the "add android ionic platform" once?
I use the latest cordova
android cordova cordova-plugins ionic-framework ionic
Harts
source share