排除重复依赖
排除某个组
compile ('com.jcodecraeer:xrecyclerview:1.3.2') {
//排除重复依赖
exclude group: 'com.android.support'
}
排除某个库
compile ('com.jcodecraeer:xrecyclerview:1.3.2') {
//排除重复依赖
exclude module: 'com.android.support:recyclerview-v7:25.3.1'
}
统一依赖的版本
compile ('com.android.support:appcompat-v7:25.3.1'){
transitive = false
}
下载慢
使用阿里服务器资源
allprojects {
repositories {
maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
}
待续