Outdated Kotlin Runtime warning in Android Studio

前端 未结 15 1647
温柔的废话
温柔的废话 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条回答
  •  猫巷女王i
    2020-11-29 20:39

    In your (Project: [projectName]) build.gradle file find this: ext.kotlin_version = 'x.x.x' and replace x.x.x with the current version of your Kotlin plugin.

    In order to check which is the current version of your Kotlin plugin:

    1. Go to: Tools -> Kotlin -> Confugure Kotlin Plugin Updates

    2. Click "Check again". After a second you will see the version of your Kotlin plugin. (If not up to date, your Kotlin plugin will be updated.)

    N.B.: Also check your (Module: app) build.gradle file and assure that you do not use:

    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.21" 
    

    but

    compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.40'
    

    Note the difference "...jre7..." -> "...jdk7...". Also replace "1.2.40" with your current Kotlin plugin version.

提交回复
热议问题