How to update Kotlin.Runtime in Android Studio

Windows 10, Android Studio 3.0.1. Just fired it up and got the "there's a new version available, update?". I updated. Now I get "Outdated Kotlin.Runtime. Version of Kotlin runtime is outdated in several libraries" followed by a long URL.

So I need to update the Kotlin Runtime. How do I do that?


Solution 1:

You can update and install new Kotlin plugin from Android Studio itself. See screenshot from Android Studio

Solution 2:

Open the "root" build.gradle of your project. At the very beginning you should find something like this:

buildscript {
ext.kotlin_version = '1.1.51'
repositories {
    google()
    jcenter()
}

change te second line to looks like:

ext.kotlin_version = '1.2.30'

How you should know exactly to which version to update the Kotlin runtime? Easy, take a look to the Event Log in Android Studio, the Kotlin plugin will complain there: Event Log message