添加依赖
implementation 'com.github.yijigu7745:RxNetWork:0.35-alpha'
Project的build.gradle里需要添加
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
在基Application里进行初始化:
new RetrofitUtilsApplication().onCreate(this);