// image-loader
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
// 导航
implementation 'com.android.support:design:26+'
// Gson
implementation 'com.google.code.gson:gson:2.2.4'
// pulltorefresh
implementation 'com.github.userswlwork:pull-to-refresh:1.0.0'
// banner
implementation 'com.youth.banner:banner:1.4.9'
// recycle
implementation 'com.android.support:recyclerview-v7:26.0.0-alpha1'
implementation 'com.jcodecraeer:xrecyclerview:1.5.8'
// OkHttp
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.squareup.okio:okio:1.5.0'
// glide
implementation 'com.github.bumptech.glide:glide:4.4.0'
implementation 'com.github.bumptech.glide:glide:3.6.1'
// fresco
{
implementation 'com.facebook.fresco:fresco:1.8.1'
implementation 'com.facebook.fresco:fresco:1.3.0'
// 支持webp
implementation 'com.facebook.fresco:webpsupport:1.3.0'
// gif加载使用
implementation 'com.facebook.fresco:animated-gif:1.3.0'
// WebP(静态图+动图)加载使用
implementation 'com.facebook.fresco:animated-webp:1.3.0'
}
// eventBus
implementation 'org.greenrobot:eventbus:3.1.1'
// butterKnife
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
{
//添加retrofit依赖
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
// 导航
implementation 'com.android.support:design:26+'
// Gson
implementation 'com.google.code.gson:gson:2.2.4'
// pulltorefresh
implementation 'com.github.userswlwork:pull-to-refresh:1.0.0'
// banner
implementation 'com.youth.banner:banner:1.4.9'
// recycle
implementation 'com.android.support:recyclerview-v7:26.0.0-alpha1'
implementation 'com.jcodecraeer:xrecyclerview:1.5.8'
// OkHttp
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.squareup.okio:okio:1.5.0'
// glide
implementation 'com.github.bumptech.glide:glide:4.4.0'
implementation 'com.github.bumptech.glide:glide:3.6.1'
// fresco
{
implementation 'com.facebook.fresco:fresco:1.8.1'
implementation 'com.facebook.fresco:fresco:1.3.0'
// 支持webp
implementation 'com.facebook.fresco:webpsupport:1.3.0'
// gif加载使用
implementation 'com.facebook.fresco:animated-gif:1.3.0'
// WebP(静态图+动图)加载使用
implementation 'com.facebook.fresco:animated-webp:1.3.0'
}
// eventBus
implementation 'org.greenrobot:eventbus:3.1.1'
// butterKnife
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
{
//添加retrofit依赖
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
//添加gson转换器的依赖
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
}
{
// greenDao
implementation 'org.greenrobot:greendao:3.2.2' // add library
//配置数据库的信息
greendao {
schemaVersion 1
daoPackage 'com.dash.a04_green_dao.gen'//换成自己的包名
targetGenDir 'src/main/java'
}
// greenDao
implementation 'org.greenrobot:greendao:3.2.2' // add library
//配置数据库的信息
greendao {
schemaVersion 1
daoPackage 'com.dash.a04_green_dao.gen'//换成自己的包名
targetGenDir 'src/main/java'
}
// In your root build.gradle file: buildscript { repositories { jcenter() mavenCentral() // add repository } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin } } // In your app projects build.gradle file: apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' // apply plugin
}
//注意 rxjava2是2.0的 不加2表示的是1.0
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation "io.reactivex.rxjava2:rxjava:2.1.10"
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation "io.reactivex.rxjava2:rxjava:2.1.10"
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
//刷新
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.4-7'
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.4-7'
okHttp日志拦截
implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
HttpLoggingInterceptor logInterceptor =
new HttpLoggingInterceptor(
new HttpLogger());
logInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);