在build.gradle里:
dependencies {
//异步开发框架 - RXjava
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.8'
//网络加载框架 - Retrofit
//compile 'com.squareup.retrofit2:retrofit:2.0.2'
//网络框架 - Okhttp
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
//用于测试HTTP客户端的Web服务器 - MockWebServer
testImplementation 'com.squareup.okhttp3:mockwebserver:3.11.0'
//View注解框架 - ButterKnife
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//腾讯bugly异常收集 - ButterKnife
implementation 'com.tencent.bugly:crashreport:latest.release'
//全双工通信协议 - Websocket
//implementation 'com.neovisionaries:nv-websocket-client:2.6'
//json解析框架 - Gson
implementation 'com.google.code.gson:gson:2.8.1'
//SocketClient测试 - AndroidSocketClient
//implementation 'com.github.vilyever:AndroidSocketClient:2.0.1'
//日志框架 - AndroidLogger
//implementation 'com.github.vilyever:AndroidLogger:1.0.9'
//消息传递框架 - Eventbus
implementation 'org.greenrobot:eventbus:3.1.1'
//数据库框架 - Greendao
implementation 'org.greenrobot:greendao:3.2.2'
//视频播放框架 - ijkplayer
implementation project(':ijkplayer-java')
implementation project(':ijkplayerso')
//视频边播边下载框架 - AndroidVideocache
implementation 'com.danikula:videocache:2.7.1'
//下载文件或者图片的库 - Filedownloader
implementation 'com.liulishuo.filedownloader:library:1.7.5'
//ftp、mail、nntp、ntp、telnet下载上传框架 - commons-net-3.3
implementation files('libs/commons-net-3.3.jar')
//本地的微型服务器框架 - AndroidAsync
implementation 'com.koushikdutta.async:androidasync:2.+'
//时间选择器 - TimePickerDialog
implementation 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
//日历控件 - Calendarview
implementation 'com.github.prolificinteractive:material-calendarview:2.0.0'
}
其他开源网络请求库与Retrofit的对比,以及Retrofit使用教程:https://blog.csdn.net/carson_ho/article/details/73732076