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?
You can update and install new Kotlin plugin from Android Studio itself. See
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:
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.
In latest version of android studio it is even easier:
Then:
Finally restart Android Studio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With