gradle Flutter在添加awesome_notifications包后给出错误

6xfqseft  于 2023-08-06  发布在  Flutter
关注(0)|答案(1)|浏览(154)

在添加awesome_notifications包并重新启动项目后,我的应用程序停止启动并开始给出以下错误:
执行任务“:app:checkDebugDuplicateClasses”失败。
执行com时出错。机器人建造。gradle。内部的任务。CheckDuplicatesRunnable重复的类kotlin.collections.jdk8.CollectionsJDK8Kt在模块jetified-kotlin-stdlib-1.8.22(org.脑子进水了kotlin:kotlin-stdlib:jetified-kotlin-stdlib-jdk8 - 1.7.20(org.脑子进水了kotlin:kotlin-stdlib-jdk8:1.7.20)重复的类kotlin.internal.jdk8.JDK8PlatformImplementations$ReflectSdkVersion在模块jetified-kotlin-stdlib-1.8.22(org.脑子进水了kotlin:kotlin-stdlib:jetified-kotlin-stdlib-jdk8 - 1.7.20(org.脑子进水了kotlin:kotlin-stdlib-jdk8:1.7.20)重复的类kotlin。jvm选择权OptionalsKt在模块jetified-kotlin-stdlib-1.8.22(org.脑子进水了kotlin:kotlin-stdlib:jetified-kotlin-stdlib-jdk8 - 1.7.20(org.脑子进水了kotlin:kotlin-stdlib-jdk8:1.7.20)
有谁知道怎么解决这个问题吗?

yxyvkwin

yxyvkwin1#

添加此内容以修复它:

dependencies {

 //...other dependencies in Module...

 implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))

}

字符串

相关问题