错误:“ Android Gradle插件仅支持Kotlin Gradle插件1.3.10及更高版本。”

时间:2020-05-16 09:05:50

标签: flutter kotlin gradle

我一直遇到此错误:失败:构建失败,并出现异常。使用 flutter_launch:^ 0.2.0 。 我已经尝试过网上找到的所有类似解决方案,但无法解决。我是新手,可以为您提供任何帮助。错误是:

Android Gradle插件仅支持Kotlin Gradle插件1.3.10及更高版本。 以下依赖项不满足要求的版本: 项目':flutter_launch'-> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

我的app \ build.gradle

dependencies {
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'com.google.firebase:firebase-analytics:17.4.1'
    implementation "com.google.firebase:firebase-messaging:20.1.7"
    implementation "com.google.firebase:firebase-core:17.4.1"
    implementation "com.google.firebase:firebase-config:19.1.4"
    implementation 'com.google.firebase:firebase-perf:19.0.7'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72"
}

还有我的android \ build.gradle

buildscript {
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.3'
        classpath 'com.google.gms:google-services:4.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
    }
}

allprojects {
    repositories {
        maven { url "https://maven.google.com" }
        google()
        jcenter()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}

0 个答案:

没有答案