Android Studio(3.1.4)渲染Design + Blueprint的问题

noo*_*gui 3 android android-layout android-studio

这是一个默认的入门项目.尚未编写新代码.图像说明了一切:

在此输入图像描述

Android SDK Manager: 在此输入图像描述

的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'
}
Run Code Online (Sandbox Code Playgroud)

我想我已经为此下载了必要的SDK(28).甚至尝试降级到API 24,25以查看它是否会发生任何变化,但设计和蓝图渲染预览不起作用.

尝试的解决方案:

  1. 确保您的Android SDK已更新为build.gradle的版本

  2. 清洁项目

  3. 无效缓存/重启

  4. 使用App主题

依然没有!

有什么好主意吗?:)

小智 12

只需按照下面的步骤,好好去

1在App Theme Top上打开设计布局窗口

在此输入图像描述

2将主题更改为素材灯

在此输入图像描述