I just freshly installed phonegap and having this problem when I try to build the project with the following command ; "phonegap build android"
ANDROID_HOME : C:\Android\sdk
ANT_HOME : C:\apache-ant-1.9.4\
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_45\
The detailed console log is as follows ;
Error : executing command 'ant' , make sure you have ant installed and added to your path.
Command finished with error code 2: cmd ....\android\cordova\build.bat.
Error building one of the platforms. Error : cmd : command failed with exit code 2.
You may not have the required environment or OS to build this project.
So it basically says that ANT is not working . When I type ANT into command prompt, it says ant is not recognized. %ANT_HOME/bin/ant works though.
When I do the following ANT command works but then phonegap is not recognized.
set PATH=%BASEPATH%
set ANT_HOME=C:\apache-ant-1.9.4\
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_45\
set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%
Any idea how to solve it ?