Android - ionic - no platforms added to this project

I successfully executed the following commands

$ npm install -g cordova $ npm install -g ionic $ ionic start myApp blank $ cd myApp $ ionic platform add android 

But the following command does not work

 $ ionic build android 

when I execute the command, I see an error, i.e. “ No platforms added to this project. Use platform platform platform platform

Please help me with your suggestions, thanks

+7
android ionic-framework
source share
3 answers

do the following:

  • npm install -g cordova
  • npm install -g ionic
  • ion launch myApp blank
  • cd myApp
  • Cordoba platform add android

you can use the cordova when installing the platform in the ion project, because Ionic internally uses the cordova.

Please answer me if the error still persists.

thanks

+12
source share
 cordova platform rm ios cordova platform rm android cordova platform add ios cordova platform add android 

// edit

to execute these commands you must be in your root folder (where you have your config.xml)

+3
source share

use this command before creating cordova platform add android . enjoy the code time.

+1
source share

All Articles