同一个库的不同版本

Different versions of the same library

我有一个使用 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 会同时使用两者吗?将我库中的 3.5.2 滑动到 运行 代码,然后将 4.5.0 用于应用程序?

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