piernik
piernik

Reputation: 3657

No platforms after Add platform cordova

Sience last week I'm trying to get cordova working and no luck yet. Step by step from this doc: http://cordova.apache.org/docs/en/3.2.0/guide_cli_index.md.html

After cordova platform add android command I get no errors. Last response "Creating android project..."

And then I'm trying cordova build command and I get error: No platforms added to this project. Please use 'cordova platform add '

What am I doing wrong???!!!

Upvotes: 2

Views: 7594

Answers (3)

Mohammad Rafigh
Mohammad Rafigh

Reputation: 786

check your config.xml syntax. a not closing tag caused this issue for me.

Upvotes: 0

Aleksei Zyrianov
Aleksei Zyrianov

Reputation: 2342

Please try removing the android platform and adding it back right away:

cordova platform remove android
cordova platform add android

Upvotes: 1

L_7337
L_7337

Reputation: 2748

It can be tricky getting this working, especially for Android. I ran into several problems, so make sure you have done everything below:

Pre-requisites

Upvotes: 0

Related Questions