[phonegap] executing 'cordova run android'... No platforms added to this project. Please use 'cordova platform add platform'.
means that you have not added the platform and are trying to execute it.
You must complete the following sequence:
First, set up telephone power using the command below (which you have already done).
$ sudo npm install -g phonegap
then create a project
$ phonegap create hi com.example.hello HelloWorld
then go to the newly created project directory
cd hi
Now add one or more platforms
$ phonegap platform add ios $ phonegap platform add amazon-fireos $ phonegap platform add android
after the platform has been added, now first create it, then run it
for assembly:
$ phonegap build
and now run on the device:
$ phonegap run android
or to run on the simulator
$ phonegap emulate android
Note. - You must have the correct Java, Android, and ANT paths installed.
Please refer to this for more details: http://docs.phonegap.com/en/3.5.0/guide_cli_index.md.html
Look at that too. corova build Failed to execute command with exit code EACCES
AAhad
source share