6

I don't use kotlin in my current a project, but always showing following warning:

Step1

When I click to "Update runtime" will be show following popup:

Step2

And here dependencies who i used:

Step3

Anybody know how to solve this google trick?

**Edit

This is bug of Android studio, because i don't using kotlin. If any body will be any idiom how to fix it can add extra answer to this a question

1 Answers1

7

Add this into your build.gradle (Project)

buildscript {
ext.kotlin_version = '1.1.60'
repositories {
    google()
    jcenter()
}
dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
    google()
    jcenter()
}
}

And this code into your build.gradle (Module)

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

dependencies {
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
}

This will update your Kotlin version. You can find more in Kotlin Targeting Android

Muhammad Hannan
  • 2,389
  • 19
  • 28