Android Studio中如何解决重复依赖
Gradle解决依赖冲突
查看依赖关系gradlew XXX:dependencies > de.txt
XXX为 模块名
_releaseCompile - ## Internal use, do not manually configure ##
+--- cn.bmob.android:bmob-sdk:3.5.3
+--- com.umeng.analytics:umeng-analytics:5.4.1
+--- cn.jiguang:jpush:2.1.8
+--- com.android.support:appcompat-v7:23.3.0
| +--- com.android.support:support-vector-drawable:23.3.0
| | \--- com.android.support:support-v4:23.3.0
| | \--- com.android.support:support-annotations:23.3.0
| +--- com.android.support:animated-vector-drawable:23.3.0
| | \--- com.android.support:support-vector-drawable:23.3.0 (*)
| \--- com.android.support:support-v4:23.3.0 (*)
+--- org.ligboy.retrofit2:converter-fastjson:2.1.0
| \--- com.alibaba:fastjson:1.2.13
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
+--- com.squareup.retrofit2:retrofit:2.1.0
\--- com.github.bumptech.glide:glide:3.6.1
错误提示如下
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define Lokhttp3/Address;
dependencies {
compile ('cn.bmob.android:bmob-sdk:3.5.0'){
exclude group: 'com.squareup.okhttp3' , module:'okhttp'//从模块中删除
}
C:\Users\Administrator\.gradle\caches\modules-2\files-2.1
'com.squareup.okhttp
组织的名称
android studio 扩展工具配置