不会写博客,直接上图

强制所有的第三方包使用指定版本的support包:

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '28.0.0'
            }
        }
    }

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-02-03
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
相关资源
相似解决方案