You should manually set the same version via DependencyResolution

 You should manually set the same version via DependencyResolution_第1张图片

使用环境:

               导入module或者打包等情况下报错

解决方法:

You should manually set the same version via DependencyResolution_第2张图片

代码:

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                //统一版本号
                details.useVersion "27.1.1"
            }
        }
    }
}

方法是转载他人的,谢谢(记不得哪个了,抱歉抱歉)

若仍未解决请联系:

QQ:88627109

欢迎来访

 

你可能感兴趣的:(日记,转载他人)