1.依赖
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compile 'com.jakewharton:butterknife:8.8.1'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.facebook.fresco:fresco:0.12.0'
compile 'com.facebook.fresco:animated-base-support:0.12.0'
compile 'com.facebook.fresco:animated-webp:0.12.0'
compile 'com.facebook.fresco:webpsupport:0.12.0'
compile 'io.reactivex.rxjava2:rxjava:2.1.7'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.squareup.okhttp3:okhttp:3.9.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.squareup.okhttp3:okhttp:3.9.0'
//compile 'com.squareup.okio:okio:1.5.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.youth.banner:banner:1.4.9'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'org.greenrobot:greendao:3.2.2' // greendao依赖
//黄油刀
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
//Retrofit
compile 'com.squareup.retrofit2:retrofit:2.3.0'//retrofit依赖
//compile 'com.squareup.retrofit2:converter-scalars:2.1.0 '//场景是这样,服务端返回一个不定类型的json数据,无法确定映射的Gson对象。
compile 'com.squareup.retrofit2:converter-gson:2.1.0'//retrofit内部封装的GSON
//compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'//log
//fresco
compile 'com.facebook.fresco:fresco:0.12.0'
// 在 API < 14 上的机器支持 WebP 时,需要添加
compile 'com.facebook.fresco:animated-base-support:0.12.0'
// 支持 WebP (静态图+动图),需要添加
compile 'com.facebook.fresco:animated-webp:0.12.0'
compile 'com.facebook.fresco:webpsupport:0.12.0'
//BottomTabBar
compile 'com.hjm:BottomTabBar:1.1.1'
//Eventbus
compile 'org.greenrobot:eventbus:3.1.1'
//Rxjava
compile 'io.reactivex:rxjava:1.0.14'
compile 'io.reactivex:rxandroid:1.0.1'
//GreenDao注释
greendao {
schemaVersion 1
daoPackage 'com.example.dell.week1.gen'
targetGenDir 'src/main/java'
}
//GrennDao工程添加
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
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
//ok网络请求
compile 'com.squareup.okhttp3:okhttp:3.9.1'
//recyclerview 与 xrecyclerview
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.jcodecraeer:xrecyclerview:1.5.2'
//图片加载
compile 'com.github.bumptech.glide:glide:3.6.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.facebook.fresco:fresco:0.12.0'
//底部栏
compile 'com.hjm:BottomTabBar:1.1.0'
//解析
compile 'com.google.code.gson:gson:2.8.1'
//轮播
compile 'com.youth.banner:banner:1.4.9'
//二维码
compile 'cn.yipianfengye.android:zxing-library:2.2'
//样式cardview
compile 'com.android.support:cardview-v7:22.2.0'
//eventbus
compile 'org.greenrobot:eventbus:3.1.1'
//butterknife
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//greendao
compile 'org.greenrobot:greendao:3.2.2'
//Snackbar
compile 'com.android.support:design:23.4.0'
//下拉 动画
compile 'com.jude:swipebackhelper:3.1.2'
compile 'com.wang.avi:library:2.1.3'
//fab
compile 'com.github.clans:fab:1.6.4'
Okhttp请求以及Gson解析
compile 'com.squareup.okio:okio:1.5.0'compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.google.code.gson:gson:2.8.2'
banner使用
compile 'com.youth.banner:banner:1.4.9'
compile 'com.github.bumptech.glide:glide:3.7.0'
recyclerView
compile 'com.android.support:mediarouter-v7:25.0.0'
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
二维码的zxing
compile 'com.github.open-android:Zxing:v1.0.3'
imageolader
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
logger日志的使用
compile 'com.orhanobut:logger:2.1.1'
xrecyclerview
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
tablayout
compile 'com.android.support:design:23.4.0'
RXJAVA加retrofit
compile 'com.squareup.retrofit2:retrofit:2.0.1'
compile 'com.squareup.retrofit2:converter-gson:2.0.1'
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.1'
compile 'io.reactivex:rxandroid:1.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
eventbus
compile 'org.greenrobot:eventbus:3.0.0'
2.权限
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>