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"
]
The root project directory does not have plugins and platforms directory, when I pull from repository. so I run "ionic platform add android", which will create the platforms directory and install the plugin.
But it does not work, until I run "ionic platform rm android" then "ionic platform add android" again, suddenly it works fine.
What cause this? and how to solve this, so next developer can pull the repo and directly make it work just by running "ionic platform add android" once?
I'm using latest cordova