Android L: compatibility with previous versions of Android

I added an update to the Play Store today, adding a material design layout for Android L and some other bug fixes, however users who do not use Android L cannot update. When they try to update the application, they are provided with "The application requires a new version of the SDK."

I compiled the application with "android-L", my minimum SDK requirement is 14, and my target SDK is "L". I created a new values ​​folder (values-v21) that uses the same theme name as my other value folders for previous versions of Android. However, instead of using Theme.Holo.Light, the v21 folder uses:

<style name="AppBaseTheme" parent="@android:style/Theme.Material.Light"> 

Is it possible to somehow implement the layout of materials for users of Android L while maintaining compatibility with Android 4.0 - 4.4?

Edit: I used the Android API 20 support library, L Preview. Returning to 19 breaks compatibility with material layouts.

+8
android android-studio sdk
source share
1 answer

No matter what you do in Gradle / Android Studios, if you set the target to L-Preview , it will override your minSDK . At this point, you should not aim L-Preview at anything in production. This is why your users see this problem when they try to upgrade, it also means that you cannot use Material Themes during the manufacturing process.

You have to go back and wait for the full version of L to use layouts of materials.

Material Theme

Quote from the page:

Note. Material theme is only available in Android L Developer Preview. For more information, see Compatibility.

L Compatibility

+1
source share

All Articles