Android 3 studio: obsolete Kotlin Runtime

I do not use kotlin in my current project, but always show the following warning:

Step1

When I click "Update Runtime", the following popup will be displayed:

Step2

And here are the dependencies that I used:

Step3

Does anyone know how to solve this google trick?

** Edit

This is an Android studio bug because I am not using kotlin. If any body is any idiom, how to fix it, you can add an additional answer to this question

+4
source share
1 answer

Add this to 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 is in 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 version of Kotlin. You can find more at Kotlin Targeting Android

+6

Source: https://habr.com/ru/post/1689354/


All Articles