常用依赖

本文详细介绍了一系列Android开发中不可或缺的依赖库,包括Butterknife用于视图绑定,Retrofit结合RxJava进行网络请求,Fresco处理图片加载,RecyclerView实现列表展示,以及EventBus用于组件间通信。这些库能显著提升开发效率,简化复杂操作。

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

 Butterknife步骤  <一键生成绑定>

implementation 'com.jakewharton:butterknife:9.0.0-rc1'

annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'

 retrofit2.0 <网络请求框架>

 //配置retrofit2.0
    compile 'com.squareup.retrofit2:retrofit:+'
    compile 'com.squareup.retrofit2:converter-gson:+'

 //配置支持Rxjava2

compile 'com.squareup.retrofit2:adapter-rxjava2:+'
compile 'io.reactivex.rxjava2:rxjava:+'
compile 'io.reactivex.rxjava2:rxandroid:+'
Fresco <图片框架>

    implementation 'com.facebook.fresco:fresco:1.9.0'
    // 支持 GIF 动图,需要添加
    implementation 'com.facebook.fresco:animated-gif:1.9.0'

   //RecyclerView   <列表展示框架>


    implementation 'com.android.support:recyclerview-v7:27.1.1'

 //EventBus依赖库:

//EventBus依赖库:
    implementation 'org.greenrobot:eventbus:3.1.1'

 

implementation 'com.jakewharton:butterknife:9.0.0-rc1'

annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'

 //配置retrofit2.0
    compile 'com.squareup.retrofit2:retrofit:+'
    compile 'com.squareup.retrofit2:converter-gson:+'

//rxjava
compile 'com.squareup.retrofit2:adapter-rxjava2:+'
compile 'io.reactivex.rxjava2:rxjava:+'
compile 'io.reactivex.rxjava2:rxandroid:+'


//fresco
    implementation 'com.facebook.fresco:fresco:1.9.0'
    // 支持 GIF 动图,需要添加
    implementation 'com.facebook.fresco:animated-gif:1.9.0'

//recycler
    implementation 'com.android.support:recyclerview-v7:27.1.1'

//EventBus依赖库:
    implementation 'org.greenrobot:eventbus:3.1.1'

 //okhttp的log信息
    implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值