平时开发时使用的依赖库

来源:互联网 发布:sql server 分类查询 编辑:程序博客网 时间:2024/05/16 06:06
Recyclerview
compile 'com.android.support:recyclerview-v7:21.0.+'


butterKnife 的依赖
compile 'com.jakewharton:butterknife:7.0.1'

Jsoup依赖
compile 'org.jsoup:jsoup:1.9.2'

Xutils依赖
compile 'org.xutils:xutils:3.5.0'

Glide依赖
compile 'com.github.bumptech.glide:glide:3.7.0'

banner依赖
compile 'com.youth.banner:banner:1.4.9'

Tablayout依赖
compile 'com.android.support:design:25.0.1'


ImageLoder依赖
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'


Json依赖
compile 'com.google.code.gson:gson:2.8.1'

OKHTTP依赖
compile 'com.squareup.okhttp:okhttp:2.4.0'

---------------------------------------------------------------------------

如果导入RecycleView依赖时与V7包冲突,在module 的 build.gradle配置文件里最后面加上这一段

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
原创粉丝点击