当前位置:   article > 正文

Android build 报错Manifest merger failed_unity打包android提示manifest merger failed : attribute

unity打包android提示manifest merger failed : attribute provider#com.bytedanc

在开发时,有一段时间没有打开开发的包,结果出现了,这个问题

Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : 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 [com.android.support:recyclerview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.
  • 1
  • 2
  • 3
  • 4

解决方法:

在build.gradle(module:app)的最后面加入这一段:


android{
......
}
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'//换成你自己的版本
}
}
}
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

问题解决。网上说有其他的解决方法。试过后,没有效果。

参考文章

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/824208
推荐阅读
相关标签
  

闽ICP备14008679号