升级到 2.3,现在 ant 构建不包含我的 libs 目录中的 jar
我一直在命令行上使用 ant 进行所有构建(Ubuntu 10.04)。我加载了 2.3 SDK 并更改了必要的路径(平台工具)。现在我的构建不包含 libs 目录中的 jar。关于我需要改变什么有什么想法吗?
I've been doing all my builds using ant on the command line (Ubuntu 10.04). I loaded up the 2.3 SDK and made the necessary path changed (platform-tools). Now my builds don't include the jars in my libs directory. Any thoughts on what I need to change?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Ant 构建系统现在需要 Ant 1.8+
不幸的是,它在 1.7 中“有效”(被破坏),因为我们依赖于 1.8 中的新行为,而不是会破坏 1.7 的新任务或属性
The Ant build system now requires Ant 1.8+
Unfortunately it "works" (broken) with 1.7 because we rely on a new behavior in 1.8, not a new task or attribute that would break 1.7
我不熟悉 android 的 ant builde,因为我正在使用 eclipse(为什么不应该?它会自动生成 build.xml)。
无论如何,当您说平台工具时,您的意思是 $ANDROID_HOME/platforms/android-9 ?
您确定 ant 需要它吗?我知道 ant 构建文件本身是相当空的,并且大部分工作都是在他们的 java .sh 文件中完成的,所以很难告诉他们缺少什么,冷,你在他们的新 SDK 中发现了一个错误吗?
i'm not familiar with the ant builde for android as i'm usig eclipse(why shouldn't ou ? it generates build.xml autotmatically).
In any case whe you say platform tools you mean $ANDROID_HOME/platforms/android-9 ?
Are you sure it's needed for ant ? i know the ant build file itself is pretty empty and most of the work is done in their java .sh files so it's ard to tell what they are missing, cold it be you found a bug in their new SDK ?
我在使用 SDK2.3 时还遇到了其他更严重的问题(AVD 已损坏)。我将 Ant 构建设置为可以在 2.2 上运行,并查看 Ant 构建是否可以运行。我的自定义 build.xml 覆盖了 ant_rules_r3.xml 中的相当多的内容,但仍然使用了其中的一些内容。我注意到它现在已被删除并替换为 main_rules.xml,这有点不同。一方面,“project.libraries”取代了“android.libraries”。如果您的 build.xml 基于 ant_rules_3,那么可能值得您查看差异。
在我的主要问题得到解决之前,我不会亲自查看它。
I've got other more serious problems with SDK2.3 (the AVDs are bust). I'd set up Ant builds OK to work on 2.2 and was looking to see if an Ant build would run. My custom build.xml overrode quite a bit of the stuff in ant_rules_r3.xml but still used some of it. I noticed that this has now been removed and replaced with main_rules.xml, which is a bit different. 'project.libraries' replaces 'android.libraries' for one thing. It's probably worth you looking at the differences if your build.xml was based on ant_rules_3.
I'm not going to look at it myself until my main problem is fixed.