Manifest merger failed Suggestion: add 'tools:replace=“Android:value”' to meta-data 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
總結
以上是生活随笔為你收集整理的Manifest merger failed Suggestion: add 'tools:replace=“Android:value”' to meta-data element at And的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Fragment 中使用 getLayo
- 下一篇: 在取环一般多少钱