Android com.android.support衝突解決

weixin_33751566發表於2018-10-12

//強制所有的第三方包使用指定版本的support包:
    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion '28.0.0'
                }
            }
        }
    }

或者定位具體的包


implementation('com.zhihu.android:matisse:0.5.2-beta3'){
    excludegroup:'com.android.support'
}

相關文章