I got this message when i wanted to update the kotlin runtime:
Your version of Kotlin runtime in 'kotlin-stdlib-1.1.2-4' library is 1.1.2-4, while plugin version is 1.1.3-release-Studio 3.0-2. Runtime library should be updated to avoid compatibility problems.
Some of codes segment which is exist in the file build.gradle
ext.kotlin_version = '1.1.2-4'
classpath 'com.android.tools.build:gradle:3.0.0-alpha8'
Can anyone help me to solve this issue?
Thanks in advance..
The Kotlin “runtime” is just a plain old Java library which only does anything if a Java runtime is around to do something with it. Kotlin code relies on the Kotlin “runtime” library. Therefore, JRE + Kotlin JAR = running Kotlin code. No other native binaries needed.
Update to a new release IntelliJ IDEA and Android Studio suggest updating to a new release once it is out. When you accept the suggestion, it automatically updates the Kotlin plugin to the new version. You can check the Kotlin version in Tools | Kotlin | Configure Kotlin Plugin Updates.
Go to your build.gradle
file.
Change
ext.kotlin_version = '1.1.2-4'
to
ext.kotlin_version = '1.1.3-2'
For future references, visit this link to see the latest update and update it accordingly in your build.gradle
file.
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