Question

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

  • Installing Apache ANT
  • Installing Eclipse
  • Adding Android ADT Plugin
  • Installing NodeJS
  • Installing Cordova
  • Setting up Environment Variable

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

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top