这是默认的启动程序项目。还没有写新的密码。
这张照片说明了这一切:
android - Android Studio(3.1.4)渲染Design + Blueprint的问题-LMLPHP
android sdk管理器:
android - Android Studio(3.1.4)渲染Design + Blueprint的问题-LMLPHP
build.gradle(模块:app)

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "chatchattan.nooguiquirks.com.chatchattan"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.support:recyclerview-v7:28.0.0-rc01'
}

我想我已经为此下载了必要的sdk(28)。甚至尝试降级到API24,25,看看它是否有任何改变,但设计和蓝图渲染预览不起作用。
尝试的解决方案:
确保你的android sdk已经更新到build.gradle版本
清洁项目
使缓存失效/重新启动
使用应用程序主题
还是什么都没有!
有什么好主意吗?:)

最佳答案

按照下面的步骤走就行了
1打开“设计布局”窗口,点击应用程序主题顶部
android - Android Studio(3.1.4)渲染Design + Blueprint的问题-LMLPHP
2将主题更改为材质灯光
android - Android Studio(3.1.4)渲染Design + Blueprint的问题-LMLPHP

10-07 19:30
查看更多