常用项目依赖总结

每次接手新的项目时,看到了很多没有注释的依赖,有些难以记得,每次都要在网上翻阅很久查看其意,所以写此文章进行以后开发时阅读,以提高开发效率。

  • 编辑时间 2018-10-12
  • 更新时间 2018-10-19

v4 v7 包

    //V4支持包
    compile('com.android.support:support-v4:23.2.0') {
        exclude module: 'support-v4'
    }

    //V7支持包
    compile 'com.android.support:appcompat-v7:23.2.0'

布局-控件 (轮播、刷新、滑动、复制、引导、样式等)

    //design
    compile 'com.android.support:design:26.0.0-alpha1'

    //TextView支持文字复制功能
    compile 'me.codeboy.android:align-text-view:2.3.0'

    //RecycleView 滑动控件
    compile('com.android.support:recyclerview-v7:23.2.0') {
        exclude module: 'support-v4'
    }

    //图片轮播库
    compile 'com.flyco.banner:FlycoBanner_Lib:1.1.8@aar'
    //banner
    compile 'com.youth.banner:banner:1.4.10'

    //刷新布局效果
    compile files('libs/AndroidSwipeLayout-v1.1.6.jar')

    //欢迎页面开源库 主要用于做引导页面的
    compile 'com.github.paolorotolo:appintro:3.4.0'

    //徽章控件消息红点
    compile files('libs/android-viewbadger.jar')

    //GifView
    compile 'com.github.Cutta:GifView:1.1'

    //CityPicker地址选择器
    implementation 'com.zaaach:citypicker:2.0.1'  

    //ConstraintLayout 约束布局 
    compile 'com.android.support.constraint:constraint-layout:1.0.2'

加载框架(图片、网络)

    //图片加载框架
    //facebook的图片加载框架
    compile 'com.facebook.fresco:fresco:0.6.0+'
    //glide  
    implementation 'com.github.bumptech.glide:glide:4.7.1'  
    annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
    //imageloader
    compile 'com.zftlive.android.library:feature-android-imageloader:1.0.0'
    //picasso
    compile 'com.squareup.picasso:picasso:2.5.2'

    //网络加载框架
    //okhttp3  
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'  
    //okhttp日志拦截器  
    implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0' 
    // okio
    compile 'com.squareup.okio:okio:1.11.0'
    // 网络请求
    compile 'org.apache.httpcomponents:httpcore:4.4.2'
    // zhy okhttp工具
    compile 'com.zhy:okhttputils:2.6.2'

数据库

    //LitePal数据库
    compile 'org.litepal.android:core:1.4.1'

动画

    //动画效果功能兼容旧版本
    compile 'com.nineoldandroids:library:2.4.0'

    // 加载动画AVLoadingIndicatorView 
    // 地址https://blog.csdn.net/hebin320320/article/details/51393831
    compile 'com.wang.avi:library:1.0.2'

 二维码

    // 二维码扫描功能
    compile 'com.google.zxing:core:3.0.1'

 Json解析

    //Json解析功能
    compile files('libs/gson-2.2.2.jar')
    compile files('libs/fastjson-1.1.40.jar')

    //转换器 将结果通过gson将json串转换为model  
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0' 

RX

    //rxjava  
    implementation 'io.reactivex.rxjava2:rxjava:2.1.1'  
    //rxandroid  
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'  
    //配合Rxjava 使用  
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'  

    //xrecyclerview
    compile 'com.jcodecraeer:xrecyclerview:1.5.9'

事件分发

    //事件分发、消息机制
    compile files('libs/event.jar')
    //eventBus  
    implementation 'org.greenrobot:eventbus:3.1.1'

依赖注入

    // 依赖注入
    compile 'com.android.support:support-annotations:26.0.0-alpha1'

    // butterknife GitHub地址https://github.com/JakeWharton/butterknife
    implementation 'com.jakewharton:butterknife:9.0.0-rc1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
    // butterknife 插件化
    classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc1'

 百度、腾讯、阿里

    //百度
    //百度地图功能
    compile files('libs/BaiduLBS_Android.jar')
    
    //腾讯
    //腾讯开发的应用、卡顿、崩溃跟踪监测,用于提高app质量的 crash崩溃
    compile 'com.tencent.bugly:crashreport:2.1.1'

    //阿里
    //阿里巴巴开发的安卓bug热修复框架
    compile 'com.alipay.euler:andfix:0.4.0@aar'
    //同盾服务,用于解决支付安全的问题
    compile files('libs/fraudmetrix-2.0.9.jar')
    //支付宝支付功能
    compile files('libs/alipaysecsdk.jar')
    compile files('libs/alipaysdk.jar')

 友盟统计

    //友盟统计与分析功能
    compile files('libs/umeng-analytics-v5.2.4.jar')
    //友盟社会化分享功能    
    compile files('libs/umeng_social_sdk.jar')
    //友盟即时通讯功能 
    compile files('libs/utdid4all-1.0.4.jar')
    //友盟用户反馈功能
    compile files('libs/umeng-feedback-v4.3.jar')
    //友盟消息推送功能
    compile files('libs/com.umeng.message.lib.jar')

 其他第三方

    //小能科技  客服系统功能
    compile project(':XiaonengChatUI')

其他工具

    // 内存泄露检测 地址https://www.liaohuqiu.net/cn/posts/leak-canary-read-me/
    compile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
    compile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'

    //Dex 文件方法数超过了最大值65536的上限
    compile 'com.android.support:multidex:1.0.0'

    //手势交互开源库 dragtoplayout
    compile 'com.github.chenupt.android:dragtoplayout:1.2.1@aar'

    //媒体服务
    compile files('libs/mediaservice-4.0.4.jar')

    //延迟深度链接
    compile files('libs/deepshare-v2.0.9.jar')

    //Crash对移动端应用的用户留存率、口碑和收入都有非常大的影响!用户存留度。
    //DeepShare是一款基于延迟深度链接(Deferred DeepLink) 的SDK。它能减少用户使用App时的跨平台、跨页面跳转,允许Web端到App端内容的直达。

 

参考:

《一些常用的项目依赖》https://blog.csdn.net/chenrushui/article/details/51892071

《Android常用依赖》https://blog.csdn.net/qq_19681347/article/details/80027208

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值