【发布时间】:2015-10-02 20:14:48
【问题描述】:
在我的 Android 项目中我使用
compile 'com.squareup.okhttp:okhttp:2.2.0'
我需要 2.2.0 版中的 okhttp 才能使我的代码正常工作。但是我添加的时候有问题
compile('io.intercom.android:intercom-sdk:1.1.2@aar') {
transitive = true
}
因为在 intercom-sdk 内部又存在 okhttp 依赖,供后续版本使用:
compile 'com.squareup.okhttp:okhttp:2.4.0'
我的代码使用了我想要的更高版本 2.4.0 而不是 2.2.0 的结果。请问有什么方法可以在我的模块中使用我指定的 2.2.0 并让对讲机使用它的 2.4.0?
【问题讨论】:
标签: gradle dependencies build.gradle transitive-dependency