Manifest merger failed Suggestion add tools replace=android:value to meta-data element at And

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

处理方法

在app 的build.gradle文件的最后添加如下:

Put this at the end of your app module in

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

猜你喜欢

转载自blog.csdn.net/xzytl60937234/article/details/82319966
今日推荐