crunch/resource packaging with aapt in ant build uses cache from other projects

浪子不回头ぞ 提交于 2019-12-04 03:43:40

问题


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?


回答1:


run "ant clean" before doing an ant build/release.




回答2:


Make sure you have closed Eclipse before you run ant from the command line.




回答3:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!