Snotnose
Snotnose

Reputation: 361

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?

Upvotes: 25

Views: 61409

Answers (4)

F.Mysir
F.Mysir

Reputation: 4176

In latest version of android studio it is even easier:

enter image description here

Then:

enter image description here

Finally restart Android Studio.

Upvotes: 6

Jose
Jose

Reputation: 2769

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

Upvotes: 63

Keith Allpress
Keith Allpress

Reputation: 49

After version 3 of Android Studio you don't need the Kotlin plugin, just uncheck it. The Kotlin version will look after itself, via a metadependency variable.

Upvotes: 4

Gille
Gille

Reputation: 316

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

Upvotes: 8

Related Questions