Android Studio GridLayout 不工作。在设计视图中完全显示为灰色

Android Studio GridLayout not working. Shows completely grey into Design View

我希望有人能帮我解决这个问题:S

我正在开发 Android Studio 3.6.2,Gradle 版本是 5.6.4。

我刚刚尝试将 GridLayout 拖放到 ConstraintLayout 中。但由于某种原因,GridLayout 显示完全灰色。

我在研究中读到可能与 Gradle 文件有关。我读了我需要:

1) implementation 'androidx.gridlayout:gridlayout:1.0.0'

2)

repositories {
        google()
    }

我的 Gradle 文件中包含这两个。那么,我是不是遗漏了什么地方?

我上传了一张参考图片和一些代码。提前致谢 ;)

Design View

build.gradle(项目:Android样本)

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"
    defaultConfig {
        applicationId "com.aretius.androidsample"
        minSdkVersion 26
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.core:core-ktx:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'
}

build.gradle(模块:应用程序)

buildscript {
    ext.kotlin_version = '1.3.61'
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

嗯,我终于解决了我的问题重新安装 Android Studio 的最新版本:)