install Ant 1.8.0 or later in Ubuntu 10.04
When I build a Android application on Ubuntu10.04, I met the following error.
"The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1"
But the latest version of ant available in ubuntu10.04 is Ant 1.7.1. I have to get the latest version from http://ant.apache.org/, and install it manually.
1. Download Ant Binary apache-ant-1.8.2-bin.tar.gz.
2. Uncompress the downloaded file into a directory.
3. mv the apache-ant-1.8.2-bin directory into /usr/share/ant to replace the old version ant.
"$ sudo mv apache-ant-1.8.2 /usr/share/ant"
4. specify the JAVA_HOME variable to the java directory.
"$ export JAVA_HOME=/usr/lib/jvm/java-6-sun"