一、前言:
implementation 'androidx.cardview:cardview:1.0.0' //cardview卡片布局
implementation 'org.greenrobot:eventbus:3.1.1' //eventbus
implementation 'fm.jiecao:jiecaovideoplayer:5.5' //节操视频
implementation 'androidx.recyclerview:recyclerview:1.0.0' //recyclerview
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.42' //万能适配器
implementation 'com.github.bumptech.glide:glide:4.9.0' //glide
implementation 'com.blankj:utilcodex:1.28.3' //AndroidUtils工具包
implementation 'androidx.appcompat:appcompat:1.0.0' //原V7包
implementation 'com.google.android.material:material:1.0.0' //原design包
implementation 'androidx.legacy:legacy-support-v4:1.0.0' //原V4包
implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.1' //jsoup爬虫
implementation 'com.google.code.gson:gson:2.8.4' //Gson解析
implementation 'cn.jzvd:jiaozivideoplayer:6.2.12' //饺子视频
implementation 'com.shuyu:GSYVideoPlayer:7.1.4' //GSYVideoPlayer 视频播放器,完整版
implementation 'io.reactivex.rxjava2:rxjava:2.2.0' //Rxjava
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' //Rxjava 线程调度器在此依赖
implementation 'com.jakewharton:butterknife:10.2.3' //butterknife
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'com.squareup.retrofit2:retrofit:2.5.0' //retrofit
implementation 'com.squareup.retrofit2:converter-gson:2.5.0' //解析器
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0' //retrofit使用的rxjava调度器
implementation 'com.squareup.okhttp3:okhttp:3.6.0' //okhttp
//SmartRefreshLayout 刷新
implementation 'androidx.appcompat:appcompat:1.0.0' //必须 1.0.0 以上
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' //核心必须依赖
implementation 'com.scwang.smart:refresh-header-material:2.0.3' //谷歌刷新头
implementation 'com.scwang.smart:refresh-footer-classics:2.0.3' //经典加载
implementation 'com.contrarywind:Android-PickerView:4.1.9' //时间选择器
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.6.0' //图片选择器
implementation 'com.hjq:xxpermissions:10.6' //权限请求库
导入依赖失败的话,是需要自己加仓库地址
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' } //仓库地址
}
}
butterknife另外需要加入以下代码
android {
....
//需要指定使用jdk1.8
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
buildscript {
...
dependencies {
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3' //添加地址
}
}
allprojects {
repositories {
....
maven { url 'https://jitpack.io' } //仓库地址
}
}
网友评论