I get the following warning, but I'm not sure where v1.0.6 resides.

Is it possible this error comes from a Kotlin library somehow including an old Kotlin version?

Any ideas how to fix it or at least how can I follow the suggestion to make kotlin-reflect explicit (1.1) ?

enter image description here

推荐答案

似乎您的项目配置方式依赖于kotlin-stdlib 1.1和kotlin-reflect 1.0.最有可能的情况是,您已经显式依赖于kotlin-stdlib 1.1,但是没有依赖于kotlin-reflect,而其他一些库(您所依赖的)依赖于kotlin-reflect 1.0.

如果确实如此,那么解决方案就是提供对kotlin-reflect1.1的显式依赖.

在Maven中,将其添加到pom.xml:

    <dependencies>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-reflect</artifactId>
            <version>1.1.0</version>
        </dependency>
    </dependencies>

在Gradle中,将其添加到build.gradle:

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-reflect:1.1.0"
}

请参阅有关此警告和相关警告的一些信息.

Kotlin相关问答推荐

Jetpack Compose中的数字 Select 器问题

用普通Kotlin理解Gradle的Kotlin DSL'""

如何在Kotlin中为接受varargs的函数添加带有默认值的新参数?

升级使用jOOQ Gradle插件生成代码失败

我可以在kotlin/java.util.scanner中跳过分隔符而不重复吗?

使函数同时挂起和取消挂起

在 detekt 配置文件中找不到某些属性

Kotlin - 协程未按预期执行

如何在 Kotlin 中不受约束?

使用空键映射获取

JobIntentService 被销毁,当应用程序被销毁时

如何创建 Kotlin DSL - DSL 语法 Kotlin

Kotlin 中的部分类委托

将 Android Studio 升级到 3.1.0 后的 Android Support 插件错误

Android插件2.2.0-alpha1无法使用Kotlin编译

用于代码生成的ANTLR工具版本4.7.1与当前运行时版本4.5.3不匹配

内联 onFocusChange kotlin

查找是否在列表中找到具有特定属性值的元素

Kotlin 中的填充字符串

在 intelliJ 元素中集成 Kotlinx 协程