all com.android.support libraries must use the exact same version specification

在app build.gradle中添加:


    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion '27.0.1'//统一使用的Version
                }
            }
        }
    }

你可能感兴趣的:(android)