Wednesday, August 15, 2012

Ubuntu 10.04 "Android Ant-based build system requires Ant 1.8.0 or later"

I got this crap when I was trying to compile the sample android app:

gideon@desktop-i7:~/workspace/MyFirstApp$ ant debug
Buildfile: build.xml
-set-mode-check:
-set-debug-files:
-check-env:
BUILD FAILED
/home/gideon/android-sdk-linux/tools/ant/build.xml:377: The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1
Total time: 0 seconds
The fix is easy, just install the ant1.8 package:

apt-get install ant1.8 
That'll do.

1 comment:

T. Webster said...

Thanks. That actually works, unlike the 10 Google hits I wasted time on before finding this.