OkHttp的依赖
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
Glide的依赖I(请求网络图片)
implementation 'com.github.bumptech.glide:glide:4.8.0'
Banner依赖
implementation 'com.youth.banner:banner:1.4.10'
xrecyclerview依赖
implementation 'com.jcodecraeer:xrecyclerview:1.5.9'
xrecyclerview 在build.gradle的android下面
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'//根据你的底下appcompat-v7版本
}
}
}
}