title: Ionic plugin need to remove platform and read platform before it works
body: <p>I have package.json like this,</p>
  
  <pre><code>  "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"
    ]
  </code></pre>
  
  <p>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. </p>
  
  <p>But it does not work, until I run "ionic platform rm android" then "ionic platform add android" again, suddenly it works fine.</p>
  
  <p>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?</p>
  
  <p>I'm using latest cordova</p>