Fedora 14中的最新蚂蚁是1.7但我需要蚂蚁1.8

Bra*_*ein 5 eclipse ant android compilation fedora

所以我在Fedora 14 PC 上运行Android SDK .在昨天之前我做了一切 - Ant 1.7,Eclipse 3.6.1(Helios),我正在构建我的Android应用程序没问题.

然后我进入了eclipse并安装了更新.现在我正在运行更新的Android SDK,它需要更高版本的Ant(1.8).Fedora 14中提供的最新版本的AntAnt 1.7.我没有办法回到旧的sdk.

所以据我所知,我需要做的是删除Ant 1.7,然后手动安装Ant 1.8(以及随之而来的所有依赖项,见下文).

如果我只是重新安装了所有东西,我最终会在同一个地方,因为Android SDK仍然需要Ant 1.8,而Fedora仍然只提供Ant 1.7.

还有其他人遇到或解决了这个问题吗?有什么建议?

下面的代码片段显示了yum remove命令的输出,该命令显示了我必须手动安装的所有ant依赖项:

===============================================================================
 Package                  Arch        Version              Repository     Size
===============================================================================
Removing:
 ant                      i686        1.7.1-13.fc13        @fedora       5.4 M
Removing for dependencies:
 ant-antlr                i686        1.7.1-13.fc13        @fedora        34 k
 ant-apache-bcel          i686        1.7.1-13.fc13        @fedora        34 k
 ant-apache-bsf           i686        1.7.1-13.fc13        @fedora        23 k
 ant-apache-log4j         i686        1.7.1-13.fc13        @fedora        18 k
 ant-apache-oro           i686        1.7.1-13.fc13        @fedora       169 k
 ant-apache-regexp        i686        1.7.1-13.fc13        @fedora        19 k
 ant-apache-resolver      i686        1.7.1-13.fc13        @fedora        20 k
 ant-commons-logging      i686        1.7.1-13.fc13        @fedora        23 k
 ant-commons-net          i686        1.7.1-13.fc13        @fedora       196 k
 ant-javamail             i686        1.7.1-13.fc13        @fedora        33 k
 ant-jdepend              i686        1.7.1-13.fc13        @fedora        72 k
 ant-jsch                 i686        1.7.1-13.fc13        @fedora       124 k
 ant-junit                i686        1.7.1-13.fc13        @fedora       387 k
 ant-nodeps               i686        1.7.1-13.fc13        @fedora       1.6 M
 ant-swing                i686        1.7.1-13.fc13        @fedora        35 k
 ant-trax                 i686        1.7.1-13.fc13        @fedora        95 k
 eclipse-jdt              i686        1:3.6.1-4.fc14       @updates       25 M
 eclipse-pde              i686        1:3.6.1-4.fc14       @updates       90 M
 eclipse-platform         i686        1:3.6.1-4.fc14       @updates       34 M
 jetty                    noarch      6.1.24-1.fc14        @fedora       2.7 M

Transaction Summary
===============================================================================
Remove       21 Package(s)
Run Code Online (Sandbox Code Playgroud)

尝试使用ant编译时观察到错误:

build.xml:121: The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1
Run Code Online (Sandbox Code Playgroud)

Eclipse处于"软化"状态

An internal error occurred during: "Refreshing external folders".
java.lang.NullPointerException
java.lang.NullPointerException at org.eclipse.jdt.internal.core.ExternalFoldersManager$RefreshJob.run(ExternalFoldersManager.java:387)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Run Code Online (Sandbox Code Playgroud)

bio*_*ics 7

您可以从ant rpm软件包中
获取最新的ant包.获取所需的所有rpm,然后使用yum安装它.
类似于:
$ wget -r -A.rpm k -nc -l1 -e robots = off http://kojipkgs.fedoraproject.org/packages/ant/1.8.2/3.fc15/noarch/
$ su -c' yum --nogpgcheck install $(find kojipkgs.fedoraproject.org/ -name"*.rpm")'