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.