Dagger2: Is it possible to inject based on Android Version? <p>Is it possible I can use Dagger2 to inject a concrete implementation based on SDK version?</p> <p>For example</p> <pre><code>// MediaPlayerComponent.class @Component(modules = {MediaPlayerModule.class} public interface MediaPlayerComponent { void inject(MediaPlayerUI ui) } // MediaPlayerUI.java public class MediaPlayerUI { @Inject public MediaPlayer mPlayer; } // GingerbreadMediaPlayer.java public class GingerbreadMediaPlayer extends MediaPlayer {...} // IceCreamSandwichMediaPlayer.java public class IceCreamSandwichMediaPlayer extends MediaPlayer {...} </code></pre>