配置
新建config.gradle (和项目的build.gradle同级).
内容大体:
ext{
android = [
compileSdkVersion : 28,
buildToolsVersion : "28.0.3",
minSdkVersion : 14,
targetSdkVersion : 28,
versionCode : 11,
versionName : "1.0"
]
version = [
retrofitSdkVersion : "2.4.0",
okhttpVersion : "3.11.0"
]
dependencies = [
//rx
"rxjava" : "io.reactivex.rxjava2:rxjava:2.1.5",
"rxandroid" : "io.reactivex.rxjava2:rxandroid:2.0.1",
//network
"retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofitSdkVersion"]}",
"retrofit-converter-gson" : "com.squareup.re