E:\Document\Cordova\cord5>cordova platform add android
Creating android project... Error: cmd: Command failed with exit code ENOENT at ChildProcess.whenDone (C:\Users\jitendra\AppData\Roaming\npm\node_modules\cordova\src\superspawn.js:112:23) at ChildProcess.EventEmitter.emit (events.js:95:17) at Process.ChildProcess._handle.onexit (child_process.js:795:12)
I have checked JAVA_HOME,ANT_HOME,ANDROID_HOME,NODE_HOME environment variables which are fine.I made sure of setting android tools and perfom-tools in env variables as well.I have extensively googled it but none of the solution had worked for me..
Can anybody please help me??
Thank you Jitendra
%userprofile%\.cordova\lib\android\cordova\3.3.0\bin\check_reqs.bat
(replace 3.3.0 with 3.4.0 if you're using cordova 3.4) in a cmd window an let us know what it displays. Or add the -d arg to have more info :cordova -d platform add android
– QuickFixant -version
and should display the message you have only if it fails. You can check the code in the file %userprofile%\.cordova\lib\android\cordova\3.4.0\bin\lib\check_reqs.js, in the blockmodule.exports.check_ant
to see what it does in 3.4 (I am still in 3.3). You can try to patch the file to calld.resolve();
in all cases (skip the test). – QuickFix