欢迎光临散文网 会员登陆 & 注册

【Android 学习记录】分享开发过程中常用的依赖 第一期

2021-06-22 20:59 作者:幻雨之秋  | 我要投稿

做一个备份,毕竟是自己从三四年前开始一点一点积攒的一部分。

对于初学者,这些足够使用了。


//控件的依赖 包含RecyclerView NavigationView 很多控件

implementation 'com.android.support:design:30.0.0'

implementation 'com.android.support:design:29.0.2'

implementation 'com.android.support:design:29.+'


//Recyclerview 列表

implementation 'androidx.recyclerview:recyclerview:1.1.0'


//如果是androidx,使用以下依赖,后续项目全部使用androidx依赖(设计质感,卡片布局)
implementation 'com.google.android.material:material:1.2.0-alpha02'

//Glide 4.x
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'

annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'


//轮播图
implementation 'com.youth.banner:banner:1.4.10'


//框架
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

//Gson 库
implementation 'com.google.code.gson:gson:2.6.2'


// OKHttp 网络获取依赖
implementation 'com.squareup.okhttp3:okhttp:4.9.0'

//上下拉 刷新的依赖
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.2'

//快速实现Android动态权限框架Grantor
compile 'com.github.dfqin:grantor:2.5'

//retrofit 网络获取依赖
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
// 必要依赖,解析json字符所用
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
// 必要依赖,和Rxjava结合必须用到,下面会提到
implementation "io.reactivex.rxjava2:rxjava:2.1.3"
// 必要rxjava2依赖
implementation "io.reactivex.rxjava2:rxandroid:2.0.1"
// 必要rxandrroid依赖,切线程时需要用到

//retrofit拦截器
implementation 'com.squareup.okhttp3:logging-interceptor:3.1.2'
// 打印日志
implementation 'com.orhanobut:logger:2.1.0'

//butterknife黄油刀
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'

//Android开源库V - Layout:淘宝、天猫都在用的UI框架,赶紧用起来吧!
compile ('com.alibaba.android:vlayout:1.2.8@aar') {
   transitive = true
}


【Android 学习记录】分享开发过程中常用的依赖 第一期的评论 (共 条)

分享到微博请遵守国家法律