Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - ionic - no platforms added to this project

I have 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 next command is not working

$ ionic build android

when I execute the command, I see an error ie "No platforms added to this project. Please use 'cordova platform add platform'"

please help me with your suggestions, thank you

like image 516
Shan Biswas Avatar asked Jun 15 '16 08:06

Shan Biswas


2 Answers

please do following:

  1. npm install -g cordova
  2. npm install -g ionic
  3. ionic start myApp blank
  4. cd myApp
  5. cordova platform add android

you can use cordova while installing platform in ionic project because Ionic internally use cordova itself.

Please feedback me if error still persist.

Thank you

like image 197
Naitik Avatar answered Nov 15 '22 19:11

Naitik


cordova platform rm ios
cordova platform rm android

cordova platform add ios
cordova platform add android

// edit

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

like image 29
matt93 Avatar answered Nov 15 '22 19:11

matt93