gpt4 book ai didi

android - Flutter android构建失败

转载 作者:行者123 更新时间:2023-12-03 05:39:47 25 4
gpt4 key购买 nike

当我将 cloud_firestore 插件添加到我的 flutte 项目时,我收到此错误

Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-media-compat' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution

谁能帮我这个。

最佳答案

我遇到了同样的问题,解决方案是添加这个 block :

resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "26.1.0"
}
}

安卓/ build.gradle 文件

关于android - Flutter android构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53801455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com