我的大楼里有这个,格雷德

buildscript {
    ext.kotlin_version = '1.1.2-4'
    ext.kotlin_version = '1.1.2'
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

}

and always show me this

Outdated Kotlin Runtime
        Your version of Kotlin runtime in 'kotlin-stdlib-1.1.2' library is 1.1.2, while plugin version is 1.1.2-release-Studio2.3-5.
        Runtime library should be updated to avoid compatibility problems.

enter image description here

推荐答案

将Kotlin版本更新至1.1.2-5:

buildscript {
    ext.kotlin_version = '1.1.2-5'
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

}

Kotlin相关问答推荐

Fleet无法从构建文件自动重新加载更改错误'

在Kotlin中可以连接两个范围吗?

Kotlin -从列表中获取特定过滤器的唯一列表值

可以从背景图像中点击图标吗?

如何在数据类中删除空格 (String)?

为何Kotlin标准库中的AND和OR函数不能像&&和||一样进行短路运算?

Android Jetpack Compose:在空的 Compose 活动中找不到 OutlinedTextField (Material3)

JetPack Compose:添加点击持续时间

我们应该在 Effect 和 Either 之间 Select 哪个作为我们业务服务的返回类型?

Kotlin 从其他类调用成员扩展函数

Saripaar formvalidation 在 kotlin 中第二次不起作用

Kotlin:内部类如何访问在外部类中声明为参数的变量?

Spring webflux bean验证不起作用

如何在 Spring WebFlux 的响应正文中流式传输二进制数据

Kotlin 扩展函数 - 覆盖现有方法

如何在 Jetpack Compose 的 LazyColumn/LazyRow 中禁用和启用滚动?

这是 Kotlin 中的错误还是我遗漏了什么?

在android的默认浏览器 Select 列表中添加我的浏览器?

内联 onFocusChange kotlin

可见性不适用于 Kotlin