Manifest merger failed Suggestion: add 'tools:replace=“Android:value”' to element at And


Attribute meta-data#Android.support.VERSION@value value=(25.3.1) from

[com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31 is also present at

处理方法

Put this at the end of your app module in

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 '25.3.0'
            }
        }
    }
}

原因就是版本不一致,在app的module 中强制转换一下.

内容来源:

https://stackoverflow.com/questions/43140059/manifest-merger-failed-suggestion-add-toolsreplace-androidvalue-to-meta

你可能感兴趣的:(Android)