In my workspace I have 3 Android projects. One core library and two projects to build two versions of my app: free and paid. Now I have several strings, which should be different in the projects. In every project I have values/strings.xml file where e.g. "@string/version" is defined as follows: "library" in library project, "free" in free project and "paid" in paid project. If I build free and paid projects with Eclipse I get "free" and "paid" for "@string/version". Everything is OK. But if I build my pr开发者_JS百科ojects with Ant I get ALWAYS "library" for "@string/version".
What I'm doing wrong? Any advice would be greatly appreciated.
When you build with Ant, use ant clean install
or ant clean debug
, and see if that helps.
精彩评论