Outdated Kotlin Runtime warning in Android Studio
android, android-studio, kotlin, kotlin-android-extensions
Solution
In your `(Project: [projectName])` `build.gradle` file find this: `ext.kotlin_version = 'x.x.x'` and replace x.x.x with the current version of your Kotlin plugin.
In order to check which is the current version of your Kotlin plugin:
Go to: Tools -> Kotlin -> Confugure Kotlin Plugin Updates
Click "Check again". After a second you will see the version of your Kotlin plugin. (If not up to date, your Kotlin plugin will be updated.)
N.B.: Also check your `(Module: app)` `build.gradle` file and assure that you do not use:
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.21"
but
compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.40'
Note the difference "...jre7..." -> "...jdk7...". Also replace "1.2.40" with your current Kotlin plugin version.
Problem
After downloaded and installed latest Kotlin plugin I have Outdated Kotlin Runtime warning from Android Studio that telling me: Your version of Kotlin runtime in 'kotlin-stdlib-1.1.2' library is 1.1.2, while plugin version is 1.1.2-release-Studio2.3-3. Runtime library should be updated to avoid compatibility problems. I tried to click Update Runtime button but getting another message: Automatic library version update for Gradle projects is currently unsupported. Please update your build.gradle manually. How to solve this issue?