6
I discovered this Phonegap not long ago, but today I got the urge to meet him. Well, as I said on the site, I needed to download Nodejs and execute a command on the CMD for it to install Phonegap.
After this, I needed to create a folder so that Phonegap registers it as an application to be developed.
The website said I needed to run this in the project folder:
phonegap run android
But while executing the command, returned the following error in my CMD window:
E:\Outros\PhoneGap\fenix>phonegap run android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[phonegap] missing library cordova/android/3.3.0
[phonegap] downloading https://git-wip-us.apache.org/repos/asf?p=cordova-androi
.git;a=snapshot;h=3.3.0;sf=tgz...
[error] An error occured during creation of android sub-project.
C:\Users\iXaDe\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:126
throw e;
^
Error: ERROR : executing command 'ant', make sure you have ant installed and ad
ed to your path.
at C:\Users\iXaDe\.cordova\lib\android\cordova\3.3.0\bin\lib\check_reqs.js:
7:27
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
EDIT
After installing the ant, phonegap still shows error:
E:\Outros\PhoneGap\fenix>phonegap run android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project.
C:\Users\iXaDe\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:126
throw e;
^
Error: Please install Android target 19 (the Android newest SDK). Make sure you
have the latest Android tools installed as well. Run "android" from your command
-line to install/update any missing SDKs or tools.
at C:\Users\iXaDe\.cordova\lib\android\cordova\3.3.0\bin\lib\check_reqs.js:8
0:29
I’m not able to execute the command, even if I already had an application developed, I’m not able to run it.
– aleDsz
Post the tutorial link you were following in your question.
– rray
By the way, two important readings for better use of Stack Overflow: http://answall.com/about and http://meta.answall.com/questions/good-subjective-bad-subjective
– Bacco
Bug says you don’t have the latest version of Android SDK. What version you have?
– bfavaretto