nha*_*man 11 android android-5.0-lollipop material-theme
L Developer Preview目前处于API级别20.但是,显然主题需要API级别21.
@android:style/Theme.Material.Light.DarkActionBar
需要API级别21
这是一个错误,我做错了什么,或者只是不可能在L预览中使用Material?
nha*_*man 28
详细说明@ panini的评论,我在我的使用中build.gradle
:
android {
compileSdkVersion 'android-L'
buildToolsVersion '20.0.0'
defaultConfig {
minSdkVersion 16
targetSdkVersion 'L'
versionName buildVersion.version
}
/* ... */
}
Run Code Online (Sandbox Code Playgroud)
放置styles.xml
在values-v21
文件夹中,使主题能够在L预览上运行.