Reputation: 361
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
Reputation: 4176
In latest version of android studio it is even easier:
Then:
Finally restart Android Studio.
Upvotes: 6
Reputation: 2769
You can update and install new Kotlin plugin from Android Studio itself. See
Upvotes: 63
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
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:
Upvotes: 8