任务“:app:compileDebugKotlin”执行失败。使用 firebase_dynamic_links 后在 flutter 中:

问题描述 投票:0回答:1

enter image description here

在我的 fluttr 应用程序中添加“ firebase_dynamic_links: ^5.4.8” ths 包后,我收到此错误

buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.2'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31'
        classpath 'com.google.gms:google-services:4.3.15'
        classpath 'com.android.tools.build:gradle:7.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

这是我用过的kotln版本

我期待运行该程序

android flutter firebase mobile firebase-dynamic-links
1个回答
0
投票

虽然升级到最新的 Kotlin 版本不起作用,但升级到另一个 Kotlin 版本却可以。我更改了 Kotlin 版本

ext.kotlin_version = '1.8.10'
,它对我有用。您还可以检查不同的 Kotlin 版本。

© www.soinside.com 2019 - 2024. All rights reserved.