Ant Build Problem - SOLVED

Monkey Forums/Monkey Beginners/Ant Build Problem - SOLVED

blueFire(Posted 2014) [#1]
I get the following error message when trying to build a very simple hello world to Android:

Building...
'ant' is not recognized as an internal or external command,
operable program or batch file.
TRANS FAILED: Android build failed.
Done.

My ant part of the config.winnt file looks like this:

'Ant build tool path
'
'Must be set to a valid dir for ANDROID target support
'
'Ant is currently available here:
' http://ant.apache.org/bindownload.cgi
'
ANT_PATH="${D}\apache-ant-1.9.2"
ANT_PATH="${D}\apache-ant-1.8.4"
ANT_PATH="${D}\apache-ant-1.8.2"
ANT_PATH="${C}\ant"
'--------------------

Jason


Nobuyuki(Posted 2014) [#2]
be sure ant is installed, then change one of the path variables to point to it. You can use a full path


marksibly(Posted 2014) [#3]
"${D}\apache-ant-1.9.2" doesn't look right - it should be something like ${SYSTEMDRIVE}\apache-ant-1.9.2" or "D:\apache-ant-1.9.2"

You should only use ${blah} in config files to expand environment variables.


blueFire(Posted 2014) [#4]
I changed all the paths involving Android to the full path (for example: D:\apache-ant-1.9.2) and this solved the problem. Thanks to everyone for all your help.

Jason