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.
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.
I am sure there is a cache somewhere that I need to clear but I can't find it (running on MacOSX Lion).
I tried the -f
option of appt
, but still the same problem.
Anybody knows how to fix this?
run "ant clean" before doing an ant build/release.
Make sure you have closed Eclipse before you run ant from the command line.
In Eclipse's menu go to Project -> untick Build automatically. Then from your Ant view, run clean
, then release
.
来源:https://stackoverflow.com/questions/12970438/crunch-resource-packaging-with-aapt-in-ant-build-uses-cache-from-other-projects