安卓开发中常用的依赖(常更新)

一个小技巧,可以在页面中按ctrl+F快速查找

如果遇到问题:Static interface methods are only supported starting with Android N (--min-api xx)错误怎么修改

build.gradle(app)的android{}中加入

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

1.RecyclerView

implementation 'androidx.recyclerview:recyclerview:1.0.0'

2.CardView

 implementation 'androidx.cardview:cardview:1.0.0'

3.viewpager 

implementation 'androidx.viewpager:viewpager:1.0.0'

 4.NavigationView 侧滑

implementation 'com.google.android.material.navigation.NavigationView:1.0.0'

5.drawerlayout 抽屉布局

implementation'androidx.drawerlayout:drawerlayout:1.0.0'

6.material design

implementation 'com.google.android.material:material:1.0.0-rc01'

7.Glide

implementation 'com.github.bumptech.glide:glide:4.4.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'

 8.Okhttp

implementation("com.squareup.okhttp3:okhttp:4.7.2")

9.Retrofit

implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'

10.TabLayout

 implementation 'com.google.android.material:material:1.0.0'

11. Snackbar

    implementation 'com.google.android.material:material:1.3.0-alpha01'

12.swipefreshrelayout

implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'

13.viewPager 2

implementation 'androidx.viewpager2:viewpager2:1.0.0'

14.EventBus

    implementation 'org.greenrobot:eventbus:3.0.0'

15.bottomNavigation 

implementation 'com.ashokvarma.android:bottom-navigation-bar:2.0.3'

16.RxJava

implementation 'io.reactivex.rxjava2:rxjava:2.2.6'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
    implementation 'io.reactivex.rxjava3:rxjava:3.0.0'

 

implementation 'io.reactivex:rxjava:1.2.0'
    implementation 'io.reactivex:rxandroid:1.2.1'

17.Gson

 implementation 'com.google.code.gson:gson:2.8.5'

18.ButterKnife

需要先安装插件

 implementation 'com.jakewharton:butterknife:10.1.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'

 

 

 

  • 4
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值