欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

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

程序员文章站 2022-07-05 11:27:19
1.RecyclerViewimplementation 'androidx.recyclerview:recyclerview:1.0.0'2.CardView implementation 'androidx.cardview:cardview:1.0.0'3.viewpagerimplementation 'androidx.viewpager:viewpager:1.0.0'4.NavigationView 侧滑implementation 'com.googl....

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")

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

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

compileOptions {
   sourceCompatibility JavaVersion.VERSION_1_8
   targetCompatibility JavaVersion.VERSION_1_8
}

 

9.Retrofit

implementation 'com.squareup.retrofit2:retrofit:2.4.0'

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 这个是2与viewPager不同哦

implementation 'androidx.viewpager2:viewpager2:1.0.0'

 

 

 

 

 

 

 

 

本文地址:https://blog.csdn.net/qq873044564/article/details/107167800