ERROR: cordova platform add android in windows

103 views
Skip to first unread message

Varun Krishna Parthasarathy

unread,
Mar 20, 2014, 7:11:53 AM3/20/14
to phon...@googlegroups.com
Hi all,
Recently I had installed phonegap and cordova globally i.e, by using the command npm install -g cordova phonegap.. Next I had added the ant, android's platform-tools and tool to the environment variable. But after creating a project using cordova create FirstApp com.Example.Cordova.FirstApp FirstApp and then after cd to the project, when I run this command cordova platform add android I am getting the following error
 
Creating android project...
'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.
Error: cmd: Command failed with exit code 1
    at ChildProcess.whenDone (C:\Documents and Settings\Administrator\Application Data\npm\node_modules\cordova\src\superspawn.js:112:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Could someone please help me fix this problem?


Thanks
Varun Krishna. P 

JJ GG

unread,
Apr 17, 2014, 12:16:41 PM4/17/14
to phon...@googlegroups.com
Hi

Just in case you're still dealing with this problem.

I solved it modifying all the environment variables that where including "C:\Documents And Settings\..." and setting their new value to "C:\DOCUME~1\..."

Regards
Reply all
Reply to author
Forward
0 new messages