Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Outdated Kotlin Runtime

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..

like image 658
Ali Barani Avatar asked Jul 30 '17 08:07

Ali Barani


People also ask

What is kotlin runtime?

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.

How do I update my Kotlin?

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.


1 Answers

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.

like image 181
Alf Moh Avatar answered Oct 11 '22 08:10

Alf Moh