liujiakuoyx / leak_detector

flutter memory leak detector.
BSD 2-Clause "Simplified" License
133 stars 24 forks source link

Plugin with id 'kotlin-android' not found #2

Closed levi-wu closed 3 years ago

levi-wu commented 3 years ago

我看了下,是android/build.gradle 中,缺少了kotlin的插件依赖,这个能加上嘛,发布个新版本。

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        // 缺少这句依赖
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
liujiakuoyx commented 3 years ago

请尝试使用 leak_detector: ^1.0.1+3

levi-wu commented 3 years ago

请尝试使用 leak_detector: ^1.0.1+3

感谢大佬,OK的