warning: Kotlin runtime JAR files in the classpath should have the same version

后端 未结 6 4314
花落未央
花落未央 2020-12-05 03:59

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?

6条回答
  •  清歌不尽
    2020-12-05 04:18

    it happens when you are using the dagger in a kotlin project(android) and you have the kotlin version to be 1.7 i.e

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    

    all you have to do is add the dependency below to your app build gradle level

      implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.50"
    

提交回复
热议问题