- 传递(transitive)
- 排除(exclude)
- 强制(force)
- 动态版本(+)
implementation('com.xxx:xxx:1.0.0@aar') {transitive = truechanging = trueforce = trueexclude group: 'com.xxx', module: 'xxx'}
强制使用指定版本号
configurations.all {resolutionStrategy {force 'com.github.bumptech.glide:glide:4.2.0'}
}
Gradle依赖分析
./gradlew ${module_path}:dependencies
+ - | \
符号:只是用来绘制树。
(*)
符号:表示重复依赖。
->
符号:表示版本冲突中时最高版本。
参考资料:https://blog.csdn.net/pkaq_/article/details/53906668