2015-01-30 00:00:00
来 源
中存储网
Ubuntu
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 h

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"

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。