Skip to content Skip to sidebar Skip to footer

Dialog Fragment Backward Compatibility

I'm trying to create a dialog fragment (actually a time picker dialog) in an android project that has a minimum SDK of android 8, but i get an error stating that API level 11 is re

Solution 1:

The snippet you provide is correct also for pre Android 3.0. If you are sure you are not using Api that was not compatible with the minSdk version, you can add a @SuppressLint('NewApi') annotation to fix your issue


Post a Comment for "Dialog Fragment Backward Compatibility"