The L Developer Preview is currently on API level 20. However, apparently the themes require API level 21.
@android:style/Theme.Material.Light.DarkActionBar
requires API level 21
Is this a mistake, am I doing something wrong, or is it just not possible to use Material on the L Preview?
To elaborate on @panini's comments, I'm using this in my build.gradle
:
android {
compileSdkVersion 'android-L'
buildToolsVersion '20.0.0'
defaultConfig {
minSdkVersion 16
targetSdkVersion 'L'
versionName buildVersion.version
}
/* ... */
}
Placing the styles.xml
in the values-v21
folder, enables the theme to run on the L Preview.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With