Outdated Kotlin Runtime warning in Android Studio

前端 未结 15 1621
温柔的废话
温柔的废话 2020-11-29 19:43

After downloaded and installed latest Kotlin plugin I have Outdated Kotlin Runtime warning from Android Studio that telling me:

Your

15条回答
  •  庸人自扰
    2020-11-29 20:41

    it complained (on Android Studio 3.0.1) ...most likely because of referenced libraries' dependencies:

    Your version of Kotlin runtime in 'org.jetbrains.kotlin:kotlin-stdlib:1.1.3@jar' library is 1.1.3, while plugin version is 1.1.51-release-Studio3.0-1.

    then I've enforced building against the version it demanded, in the module level build.gradle:

    configurations.all() {
        resolutionStrategy.force 'org.jetbrains.kotlin:kotlin-stdlib:1.1.51'
    }
    

    and the result is:

    ./gradlew app:dependencies | grep kotlin
    Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.1.51/kotlin-stdlib-1.1.51.pom
     |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.1.3 -> 1.1.51
     ...
    

提交回复
热议问题