在android 主项目的build.gradle 的android 打括号里 添加如下:
//去除重复依赖库
configurations {
all*.exclude module: 'okhttp'
all*.exclude module: 'okio'
all*.excludegroup:'com.android.support',module:'support-v4'
all*.excludegroup:'com.android.support',module:'support-v13'
}
configurations.all {
resolutionStrategy.force 'com.android.support:multidex:1.0.3'
// 解决appCompat 包冲突
resolutionStrategy.force 'com.android.support:appcompat-v7:23.4.0'
}
网友评论