I have two modules: my application’s module, which I want to be compiled using Android 2.3 platform, and ActionBarSherlock library module, which has to be compiled with Android 4.0 platform. When I set project structure that way and run application (and ActionBarSherlock is set as dependency of my module) – IDEA tries to compile everything with 2.3 API, and displays errors like this:
android-apt-compiler:
action-bar-sherlock\res\values-v14\abs__themes.xml:32: error: Error
retrieving parent for item: No resource found that matches the given
name ‘android:Theme.Holo.Light.Dialog’
How to set IDEA properly?
You can compile everything with the 4.0 libs, but support 2.3 using the following manifest declarations:
In the example, 17 is the current latest API version, but you can use 15, or whatever you need.