开发者

Library resources in Android projects built with Ant

开发者 https://www.devze.com 2023-03-10 21:50 出处:网络
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 e

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消