title: UnhandledPromiseRejectionWarning: Error: The platform "0" does not appear to have been added to this project
body: <p>I created an ionic project like ionic documentation said</p>
  
  <ol>
  <li>$ ionic start HelloWorld blank</li>
  <li>$ cd HelloWorld</li>
  <li>$ ionic serve</li>
  <li><p>Install the Camera Plugins</p>
  
  <ul>
  <li>npm install @ionic-native/camera --save</li>
  <li>ionic cordova plugin add cordova-plugin-camera</li>
  <li><p>Add Plugins to Your App's Module</p>
  
  <p>import { Camera } from '@ionic-native/camera';<br>
  @NgModule({
    providers: [
      Camera
    ]
  })
  export class AppModule { }</p></li>
  </ul></li>
  </ol>
  
  <p>when run project on a device using command  ionic Cordova run android --device 0
  I got this error </p>
  
  <blockquote>
    <p>cordova run android 0 --device
    Android Studio project detected</p>
  </blockquote>
  
  <pre><code>(node:17224) UnhandledPromiseRejectionWarning: Error: The platform "0" does not appear to have been added to this project.
      at Object.getPlatformApi (C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:46:15)
      at C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:54:38
      at Array.map (&lt;anonymous&gt;)
      at C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:52:47
      at _fulfilled (C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
      at self.promiseDispatch.done (C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
      at Promise.promise.promiseDispatch (C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
      at C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:557:44
      at flush (C:\Users\m.besher\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
      at _combinedTickCallback (internal/process/next_tick.js:131:7)
  (node:17224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of
  an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
  (node:17224) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that
  are not handled will terminate the Node.js process with a non-zero exit code.
  
  [OK] Your app has been deployed.
       Did you know you can live-reload changes from your app with --livereload?
  </code></pre>