问题描述
我在使用公用库两款Android应用程序。每个项目定义了自己的背景图像的闪屏和其他几个人。这些图像在这两个应用程序相同的名称。
I have two android apps using a common library. Each project defines its own background images for the splash screen and a few others. These images have the same names in both apps.
当我建立/从Eclipse中运行,每个应用程序使用了正确的背景图像。然而,当我运行Ant构建文件,内容是包装资源时,混合起来,相同的图像用于两个应用程序。
When I build/run from eclipse, each app uses the correct background images. However, when I run my ant build file, the contents are mixed up when packaging resources and the same images are used for both applications.
我相信有一个缓存的地方,我需要清除,但我不能找到它(MacOSX上狮跑)。
I am sure there is a cache somewhere that I need to clear but I can't find it (running on MacOSX Lion).
我试过聘任
的 -f
选项,但仍是同样的问题。
I tried the -f
option of appt
, but still the same problem.
任何人知道如何解决这个问题?
Anybody knows how to fix this?
推荐答案
做一个Ant构建/发布之前先运行蚂蚁干净。
run "ant clean" before doing an ant build/release.
这篇关于与AAPT在Ant构建紧缩/资源包装使用来自其他项目的缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!