在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 '26.1.0'
            }
        }
    }
}
}

support包有红色下划线,支持库版本的兼容问题

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2021-08-25
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2021-11-05
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案