nilesh wani
nilesh wani

Reputation: 1291

command cordova platform add android not recognized internal or external command?

I did all Pre-requests steps for creating phonegap android apps. I installed all things like a

but when I was fire the command like cordova platform add android then I got following screen enter image description here

before this command all commands worked properly. please anybody tell me how to solve this problem..
Thanks in advance

Upvotes: 0

Views: 759

Answers (1)

QuickFix
QuickFix

Reputation: 11721

As seen here, it seems cordova cli does not work correctly if you have spaces in the folder where you put your project.

Most people (including me) using windows 7 or 8 don't have the issue because "c:\Documents and Settings" has been replaced by "c:\Users".

Which version of cordova are you using? (I don't seem to be able to reproduce the issue with cordova 3.4.1)

I see two solutions for you (plus upgrading to latest cordova if you have a older version) :

1)Use folder's short name:

cd c:\Docume~1\Administrator\DesignTechCadAcadamy
cordova platform add android

or 2)Try to create a folder at the root of your disk and work in this folder instead of in your user's folder.

For example try

md c:\CordovaProjects
pushd c:\CordovaProjects
cordova create test
cd test
cordova platform add android

Upvotes: 1

Related Questions