感谢支持
我们一直在努力

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”

赞(0) 打赏
转载请注明出处:服务器评测 » install Ant 1.8.0 or later in Ubuntu 10.04
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏