更新支持库版本后,27.1.0 Android Studio无法呈现CardView.它显示错误消息
failed to find style 'cardView Style' in current theme
Run Code Online (Sandbox Code Playgroud)
但是在编辑时没有错误,并且在手机上看到没有区别.
我已经将支持库版本恢复为27.0.2并且它正常呈现.
支持库或Android工作室的问题?如何解决这个问题?
App Level Gradle:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'realm-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.tmmmt.tmmmt"
minSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
buildConfigField 'String', 'FS_CLIENT_ID', FOURSQUARE_CLIENT_ID
buildConfigField 'String', 'FS_CLIENT_SECRET', FOURSQUARE_CLIENT_SECRET
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
buildConfigField 'String', 'FS_CLIENT_ID', FOURSQUARE_CLIENT_ID …Run Code Online (Sandbox Code Playgroud) android rendering kotlin android-support-library android-gradle-plugin