//Bufferknife依赖(控件)
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//EventBus依赖(线程通信)
implementation 'org.greenrobot:eventbus:3.0.0'
//xrecycleView依赖(刷新)
implementation 'com.android.support:design:27.1.1'
implementation 'com.jcodecraeer:xrecyclerview:1.3.2'
//fresco依赖(加载图片)
implementation 'com.facebook.fresco:fresco:1.10.0'
//RxJava和Retrofit依赖(访问数据)
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'io.reactivex:rxjava:1.2.6'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
//interceptor依赖(拦截器)
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
implementation 'com.github.userswlwork:pull-to-refresh:1.0.0'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
数据库
apply plugin: 'org.greenrobot.greendao' // apply plugin
greendao{
schemaVersion 1 // 数据库版本号
daoPackage 'cj.com.greendaotest.greendao'//greenDao 自动生成的代码保存的包名
targetGenDir 'src/main/java' //自动生成的代码存储的路径,默认是 build/generated/source/greendao.
generateTests false //true的时候自动生成测试单元
//targetGenDirTests: 测试单元的生成目录默认是 src/androidTest/java
}
implementation 'org.greenrobot:greendao:3.2.2' // add library
app
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
冲突
implementation 'com.android.support:support-v4:27.0.0'