dependencies - Don't use later library version from transitive dependency in Gradle -
in android project use
compile 'com.squareup.okhttp:okhttp:2.2.0'
i need okhttp in version 2.2.0 code work properly. have problem when add
compile('io.intercom.android:intercom-sdk:1.1.2@aar') { transitive = true }
because inside intercom-sdk there okhttp dependency again later version:
compile 'com.squareup.okhttp:okhttp:2.4.0'
which results code uses later version 2.4.0 instead of 2.2.0 want. there please way how in module can use 2.2.0 specified , let intercom use 2.4.0?
you can use this:
compile('io.intercom.android:intercom-sdk:1.1.2@aar') { exclude group: 'com.squareup.okhttp', module: 'okhttp' }
however pay attention. if library uses methods not present in 2.2.0 release, fail.
Comments
Post a Comment