桥下红药

以无心之心读书

gradle 遇到依赖模块 包版本不一致解决办法

总分类 0 评

configurations.all {

    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                //统一版本号
                details.useVersion '25.3.0'
            }
        }
    }
}

上一篇

发表评论