flutter 调试中android dependency 'a

2020-02-11  本文已影响0人  栈鱼科技

//j解决You should manually set the same version via DependencyResolution问题.

//Flutter 多个插件引用的依赖包版本不一样,导致冲突:

文件.../android/build.gradle 添加以下内容

subprojects {

project.configurations.all {

resolutionStrategy.eachDependency { details ->

if (details.requested.group =='androidx.core' &&

!details.requested.name.contains('androidx')) {

details.useVersion"1.0.1"

            }

}

}

}

上一篇下一篇

猜你喜欢

热点阅读