All com.android.support libraries must use the exact same version specification (mixing versions can
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.1.0'
}
}
}
}
来源:android第三方库导致support版本冲突解决方案