【发布时间】:2011-03-09 03:05:46
【问题描述】:
所以我在我的 Fedora 14 PC 上运行 Android SDK。在昨天之前,我一切正常 - Ant 1.7、Eclipse 3.6.1 (Helios),并且我正在构建我的 Android 应用程序没有问题。
然后我进入 Eclipse 并安装了更新。现在我正在运行一个更新的 Android SDK,它需要更高版本的 Ant (1.8)。 Fedora 14 中可用的最新版本的 ant 是 Ant 1.7 。我看不到回到旧 SDK 的方法。
据我所知,我需要做的是删除 Ant 1.7,然后手动安装 Ant 1.8(以及随之而来的所有依赖项,见下文)。
如果我只是重新安装所有东西,我最终会回到同一个地方,因为 Android SDK 仍然需要 Ant 1.8 而 Fedora 仍然只提供 Ant 1.7 .
还有其他人遇到或解决过这个问题吗?有什么建议吗?
hfollowing sn-p 显示 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)
尝试使用 ant 编译时观察到错误:
build.xml:121: The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1
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)
【问题讨论】:
-
升级可能是最好的选择
-
我不会弄乱供应商 Ant,而是在 /home/me/local/bin 中安装我自己的。
-
我下载了 Ant 1.8 并将其“安装”到 /opt 中,但是现有的 ant 与现有的系统交织在一起,以至于我无法切换到新的系统。这就是为什么我认为我必须完全删除 Ant 1.7 才有机会?
-
嗯。应该有办法在某处设置 $PATH 以使本地 ant 优先。
标签: android eclipse ant compilation fedora