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:
- let's assume you have installed your Android SDK to the
c:sdkandroid
directory
- you have installed you Apache ant to the
c:oolsapache-ant
directory
Then you must create two system variables:
ANDROID_HOME
with the c:sdkandroid
value
ANT_HOME
with the c:oolsapache-ant
value
Finally, you must modify the PATH
variable and add those two to the end of the PATH
' value:
;%PATH%ools;%ANT_HOME%in;%ANDROID_HOME%ools;%ANDROID_HOME%platform-tools
NOTE: for those who uses Linux, the instruction differs a bit.
More documentation available here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…