【问题标题】:Different versions of the same library同一个库的不同版本
【发布时间】:2018-04-20 09:20:57
【问题描述】:

我有一个使用 Glide v3 的库

dependencies {
     compile 'com.android.support:appcompat-v7:25.3.1'
     provided 'com.github.bumptech.glide:glide:3.5.2' 
}

而且,App 使用 Glide v4

compile 'com.github.bumptech.glide:glide:4.5.0'

如果是这种情况,应用程序/模块在应用程序中运行时将使用哪个版本的库? Gradle 会同时使用两者吗?在我的库中 Glide 3.5.2 运行代码,然后将 4.5.0 用于应用程序?

【问题讨论】:

  • “运行代码”和“应用程序”有什么区别?

标签: java android-gradle-plugin dependencies android-glide


【解决方案1】:

没关系,根据冲突依赖解决方案,它将始终使用最高版本,因此 Glide v4。

【讨论】:

    猜你喜欢
    • 2018-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多