Android dependency ‘com.android.support:appcompat-v7’ has different version for the compile#**

此种问题是你的项目中引用了不同版本的v7包,这个要统一

Android dependency 'com.android.support:appcompat-v7' has different version for the compile

终极解决办法:(强制让所有模块都用相同的支持库版本)
在项目app的build.gradle中的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.4.0’
}
}
}
}
然后Sync Now,成功,运行后成功运行。

原文链接:https://blog.csdn.net/haomigzi/article/details/86687181

相关文章:

  • 2021-08-10
  • 2021-10-14
  • 2022-12-23
  • 2021-12-31
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-01-17
  • 2021-04-29
  • 2021-05-08
相关资源
相似解决方案