Outdated Kotlin Runtime

2019-05-01 16:34发布

问题:

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

回答1:

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.