Outdated Kotlin Runtime warning in Android Studio

前端 未结 15 1604
温柔的废话
温柔的废话 2020-11-29 19:43

After downloaded and installed latest Kotlin plugin I have Outdated Kotlin Runtime warning from Android Studio that telling me:

Your

相关标签:
15条回答
  • 2020-11-29 20:43

    This issue comes when you update the kotlin plugin version popped up from android studio, but issue is current version of Android studio is not able to dynamically change the kotlin gradle plugin which is located in your project level Build.gradle file.

    dependencies {
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.10"
    }
    

    How to solve this issue?

    So you need to manually change this version, You can find that Here

    0 讨论(0)
  • 2020-11-29 20:45
    buildscript {
        ext.kotlin_version = '1.2.50'
        repositories {
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.2'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    0 讨论(0)
  • 2020-11-29 20:49

    I was facing same problem after updation my android studio from 3.0.1 to 3.2.1.My problem was solved after using this.

    buildscript {
    ext.kotlin_version = '1.2.51'
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    

    }

    0 讨论(0)
提交回复
热议问题