出现add 'tools:replace="android:value"' to element at AndroidManifest.xml:22:5-24:34 to override.的解决办法

在build.gradle(Module:app)文件末尾加上:

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'
            }
        }
    }
}
再次点击sync即可运行

你可能感兴趣的:(Android)