一个小技巧,可以在页面中按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'