I got problem when i want to add an android platform to my phoneGap application. I got this message in my CLI when i execute the command cordova platform add android :
To work, this cordova command needs to use some programs located into your sdk/tools
directory. You need also have installed apache ant.
Then you must add these directories into your PATH
system variable:
Background:
c:\sdk\android
directoryc:\tools\apache-ant
directoryThen you must create two system variables:
ANDROID_HOME
with the c:\sdk\android
valueANT_HOME
with the c:\tools\apache-ant
valueFinally, you must modify the PATH
variable and add those two to the end of the PATH
' value:
;%PATH%\tools;%ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
NOTE: for those who uses Linux, the instruction differs a bit.
More documentation available here.