With my current code base I'd like to build two or more different versions of my Android app (free, premium, ...). For the iPhone (XCode) I can开发者_如何学编程 definte different targets. Is there something similar implemented in Eclipse?
I don't think there's such functionality in Eclipse (or the Android plug-in for it). Though using ant you should be able to achieve this.
For my builds I have set up in Eclipse my projects using Maven and the maven-android-plugin. This allows you to depend on the apksources of other projects and override the code and resources of them.
You could use Library projects - supported in Eclipse - here http://developer.android.com/guide/developing/projects/projects-eclipse.html#SettingUpLibraryProject
精彩评论