The command cordova build android
fails with the following output
BUILD FAILED
F:\Programs\SDK\tools\ant\build.xml:597: The following error occurred while executing this line:
F:\Programs\SDK\tools\ant\build.xml:649: The following error occurred while executing this line:
F:\Programs\SDK\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program
"F:\code\asistenciaBT\platforms\android\CordovaLib\${aapt}"
(in directory "F:\code\asistenciaBT\platforms\android\CordovaLib"): CreateProcess error=2,
El sistema no puede encontrar el archivo especificado
Meaning, as far as I can tell, that ant can't find the aapt file. Ant is installed:
ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
ANDROID_HOME
and PATH
are correctly set as well. I have made cordova work on this system before, now it just refuses to.
Should cordova be looking for appt in the project directory? Shouldn't it be looking on ANDROID_HOME/build_tools
?
Some further detail, in case is needed:
npm -v
2.7.4
node -v
v0.12.2
cordova -v
5.1.1
os: windows 8.1 pro 64 bits
Project was cloned from github so it might have some inherited incompatibility somewhere.
EDIT:
Just tested 'cordova build' on a new project and it fails with the same error.