自己可能会用的依赖

博客介绍了依赖使用中api与implementation的区别,api是多个module可共用的依赖,而implementation仅供当前module使用,还提及有大佬文章详细讲解。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

PS:依赖使用 api与implementation 的区别:api多个module可共用的依赖;implementation只供当前module使用依赖
大佬文章详细讲解

    // kotlin中Anko的依赖  项目地址: https://github.com/Kotlin/anko
    api "org.jetbrains.anko:anko:0.10.8"  
    
    // retrofit2加rxjava2加okhttp3
    implementation "io.reactivex.rxjava2:rxjava:2.1.16" //rxjava
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.2' //rxandroid
    implementation 'com.squareup.retrofit2:retrofit:2.4.0' //retrofit
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0' //gson解析数据
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' //retrofit与rxjava的适配器
    implementation 'com.squareup.okhttp3:okhttp:3.10.0' // okhttp
    implementation  "com.squareup.okhttp3:logging-interceptor:3.10.0" // 消息拦截器
    
    // RxLifecycle(管理rxjava生命周期,防止内存泄露)  github:https://github.com/trello/RxLifecycle
    // rxlifecycle3是androidx版本的
    implementation  'com.trello.rxlifecycle3:rxlifecycle-components:3.1.0'
    implementation  'com.trello.rxlifecycle3:rxlifecycle:3.1.0'
    // rxlifecycle2不是androidx版本的
    implementation 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.2'
    implementation 'com.trello.rxlifecycle2:rxlifecycle:2.2.2'
    
    // 运行时权限的申请框架
    implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.3@aar'
    
    // MMKV(持久存储:类似SharedPreferences性能却更好) https://github.com/tencent/mmkv
    implementation 'com.tencent:mmkv-static:1.0.24'    
    
    // 加载动画合集 ,项目地址:https://github.com/81813780/AVLoadingIndicatorView
    implementation 'com.wang.avi:library:2.1.3'
    
    // 加载json动画   项目地址:https://github.com/airbnb/lottie-android  
    // 2.7.0(不使用androidx) 2.8.0及以上版本(使用了androidx) 
    implementation "com.airbnb.android:lottie:2.7.0"
    
    // 列表RecyclerView
    implementation 'com.android.support:recyclerview-v7:27.1.1'
     /* 配合RecyclerView使用的,适配器框架  
     还需要再总工程的闭包下加一个: maven { url "https://jitpack.io" }不然依赖包会导入失败! */
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
    
    // ARouter 跨模块页面跳转 (占地方太大不写了直接看博文把...)
    查看博文:// https://blog.youkuaiyun.com/qq_38287890/article/details/103049830

    // EventBus 跨模块事件  githua: https://github.com/greenrobot/EventBus
    implementation 'org.greenrobot:eventbus:3.2.0'
    
    // 圆形图片
    implementation 'de.hdodenhof:circleimageview:2.1.0'
    
    // 轮播图banner
    implementation'com.youth.banner:banner:1.4.10'
    
    // 加载gif图片
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
    
    // Glide框架加载图片
    implementation "com.github.bumptech.glide:glide:3.7.0"

    // 图片查看View 可放大缩小图片 github: https://github.com/chrisbanes/PhotoView
    implementation 'com.github.chrisbanes:PhotoView:2.1.4'
    
    // 卡片效果
    implementation 'com.android.support:cardview-v7:27.1.1'
    
    // Material Design控件依赖   可以参考:https://blog.youkuaiyun.com/Fly_li_sir/article/details/79704021
    implementation 'com.android.support:design:27.1.1'
    
    //ViewPager指示器   github网址: https://github.com/hackware1993/MagicIndicator
    implementation'com.github.hackware1993:MagicIndicator:1.5.0'
    
    // 滚动选择器(用于实现三级联动等效果)
    implementation 'com.contrarywind:Android-PickerView:4.1.7'
    
     // 管理系统状态栏颜色(风格)的工具  github:https://github.com/laobie/StatusBarUtil
    implementation 'com.jaeger.statusbarutil:library:1.5.1'
    
    // 工具类
    implementation 'com.blankj:utilcode:1.23.7'
    
    // 3D地图so及jar
    implementation 'com.amap.api:3dmap:5.2.0'
    // 定位功能
    implementation 'com.amap.api:location:4.2.0'
    // 搜索功能
    implementation 'com.amap.api:search:6.1.0'
    // 2D地图
    implementation 'com.amap.api:map2d:5.2.0'
    
    // 三级城市联动
    implementation 'liji.library.dev:citypickerview:4.1.2'
    
    // 知乎图片选择器  github: https://github.com/zhihu/Matisse
    implementation 'com.zhihu.android:matisse:0.4.3'
    
    // 鲁班压缩
    implementation 'top.zibin:Luban:1.1.3'
    
    // 解决64k问题
    implementation 'com.android.support:multidex:1.0.3'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值