简体   繁体   中英

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???!!!

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

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

cordova platform remove android
cordova platform add android

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM