Outdated Kotlin Runtime warning in Android Studio

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.
enter image description here

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.)
    enter image description here
    enter image description here

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.

Leave a Comment