任务“: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"
    }
}
```   this is the kotln version i have used 


i was expecting to run the program 
android flutter firebase mobile firebase-dynamic-links
1个回答
0
投票

我升级到最新的 kotlin 版本但不起作用我尝试了其他 kotlin 版本 ext.kotlin_version = '1.8.10' 这对我有用

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