1. butterknife


     compile 'com.jakewharton:butterknife:7.0.0'
     compile 'com.jakewharton:butterknife:7.0.1'


     compile 'com.jakewharton:butterknife:8.2.1'
     apt 'com.jakewharton:butterknife-compiler:8.2.1'


     //butterknife在Studio3.0版本上需使用以下8.8.1版本(下面2行代码都要加)
     compile 'com.jakewharton:butterknife:8.8.1'
     annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'


2. okhttp

     compile 'com.squareup.okio:okio:1.5.0'


     implementation 'com.squareup.okhttp3:okhttp:3.10.0'     //较新


     compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'


     compile 'com.squareup.okhttp3:okhttp:3.9.0'


     
3. RecyclerView


常用:
     compile 'com.android.support:recyclerview-v7:25.3.1'(SDK版本需为25,要把SDK版本改为 25,最后导入依赖)


     compile 'com.android.support:recyclerview-v7:26.+'  //(SDK版本需为26)


     compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
     compile 'com.yqritc:recyclerview-flexibledivider:1.4.0' 
     compile 'com.android.support:recyclerview-v7:27.0.1'(最新版本,SDK版本需为27)




 补充:
     implementation 'com.android.support:support-v4:27.0.1'
     compile 'com.android.support:recyclerview-v7:27.+' (27版本中的高版本)




4. SpringView


     compile 'com.liaoinstan.springview:library:1.3.0'
     compile 'com.liaoinstan.springview:library:1.2.6'




5. XRecyclerView 


     compile 'com.jcodecraeer:xrecyclerview:1.3.2'


     compile 'com.jcodecraeer:xrecyclerview:1.5.9'     //较新 
 
 
6.极光推送
 
 
 
 
    compile 'cn.jiguang.sdk:jpush:3.0.3'  // 此处以JPush 3.0.3 版本为例。
     compile 'cn.jiguang.sdk:jcore:1.1.1'  // 此处以JCore 1.1.1 版本为例。




7. Tablelayout (这条依赖不能直接添加到build.gradle中,需要在Model的dependencies搜索添加)


       com.android.support:design (com.android.support:design:28.0.0-alpha1)


        implementation 'com.android.support:design:27.+'


        compile 'com.android.support:design:26.1.0'   //此依赖适合 SDK 26
        compile 'com.android.support:design:25.3.1'
        compile 'com.android.support:design:24.2.1'


8.banner滑动


compile 'com.youth.banner:banner:1.1.5'
        compile 'com.youth.banner:banner:1.4.9' (常用)
        compile 'com.youth.banner:banner:1.4.10'    //最新版本


9.Xbanner


          compile 'com.abby.app:xbanner:1.5.5' //the latest version


          compile 'com.xhb:xbanner:latestVersion'  //将latestVersion替换成上面最新的版本


    
10.Glide显示图片


       compile 'com.github.bumptech.glide:glide:3.7.0'    
       
      implementation 'com.github.bumptech.glide:glide:3.8.0'  


      implementation 'com.github.bumptech.glide:glide:4.7.1'
      annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'   //较新版本




11.Xutils


      compile 'org.xutils:xutils:3.5.0' 
 
 
链接:
 
 
 
 
  
12.ImageLoder


      compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.2'
     compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
     compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'




13.Gson

      compile 'com.google.code.gson:gson:2.8.2'
   
    
14.Jsoup

     compile 'org.jsoup:jsoup:1.9.2'



15. Android图片加载框架之Picasso

    compile 'com.squareup.picasso:picasso:2.5.1'

     implementation 'com.squareup.picasso:picasso:2.71828'



16. Recyclerview表格依赖:
     
    compile 'com.github.liuguangqiang.SuperRecyclerView:super-recyclerview:0.1.2'



17. Rxjava
常用:
     compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
     compile 'io.reactivex.rxjava2:rxjava:2.1.7'
     compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' 
     


 补充:
     compile 'io.reactivex:rxandroid:1.0.1'  // RxAndroid
     compile 'io.reactivex:rxjava:1.0.14'    // 推荐同时加载RxJava
     compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'       // Retrofit网络处理
     compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta2' // Retrofit的rx解析库
     compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2' // Retrofit的gson库
     compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta4'
     compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'


  18. LitePal数据库
 
 
 
19. 二维码: 
 
 
compile 'cn.yipianfengye.android:zxing-library:2.2'
 
20. Fresco 
    compile 'com.facebook.fresco:fresco:0.11.0'   


     compile 'com.facebook.fresco:fresco:0.12.0'


     // 在 API < 14 上的机器支持 WebP 时,需要添加
     compile 'com.facebook.fresco:animated-base-support:0.12.0'


     // 支持 GIF 动图,需要添加
     compile 'com.facebook.fresco:animated-gif:0.12.0' 


     // 支持 WebP (静态图+动图),需要添加
     compile 'com.facebook.fresco:animated-webp:0.12.0'
     compile 'com.facebook.fresco:webpsupport:0.12.0'


     // 仅支持 WebP 静态图,需要添加
     compile 'com.facebook.fresco:webpsupport:0.12.0'




 //使用以下0.14.1高版本支持更多属性,推荐在Studio 3.0版本使用
     compile 'com.facebook.fresco:fresco:1.5.0'
     compile 'com.facebook.fresco:fresco:0.14.1'


     // 在 API < 14 上的机器支持 WebP 时,需要添加
     compile 'com.facebook.fresco:animated-base-support:0.14.1'


     // 支持 GIF 动图,需要添加
     compile 'com.facebook.fresco:animated-gif:0.14.1'


     // 支持 WebP (静态图+动图),需要添加
     compile 'com.facebook.fresco:animated-webp:0.14.1'
     compile 'com.facebook.fresco:webpsupport:0.14.1'


     // 仅支持 WebP 静态图,需要添加
     compile 'com.facebook.fresco:webpsupport:0.14.1'


     implementation 'com.facebook.fresco:fresco:1.9.0' //较新版本
     
     
 For OkHttp2:
 compile "com.facebook.fresco:imagepipeline-okhttp:0.12.0+"


 For OkHttp3:
 compile "com.facebook.fresco:imagepipeline-okhttp3:0.12.0+"




21. EventBus


    compile 'org.greenrobot:eventbus:3.0.0'
     compile 'org.greenrobot:eventbus:3.1.1'    //较新版本


22. Retrofit

     //常用:由于Retrofit是基于OkHttp,所以还需要添加OkHttp库依赖
      implementation 'com.squareup.retrofit2:retrofit:2.4.0'   //较新版本
      compile 'com.squareup.retrofit2:converter-scalars:2.3.0' 
      compile 'com.squareup.okhttp3:okhttp:3.9.0'
      //如果采用了 Gson 解析,需要在 Gradle加入retrofit2类库中的gson依赖
      compile 'com.squareup.retrofit2:converter-gson:2.3.0'     //较新版本




      compile 'com.squareup.retrofit2:retrofit:2.3.0'
      compile 'com.squareup.retrofit2:converter-gson:2.0.2'     //补充
     


23  GreenDao


1.在工程Project的build.gradle里面


 buildscript {
     
     repositories {
         google()
         jcenter()
         mavenCentral() // 当前Project的build.gradle添加GreenDao库文件
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.1.1'
         classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // // 当前Project的build.gradle添加GreenDao库依赖


         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
     }
 }






 2.在项目的build.gradle里面
 apply plugin: 'com.android.application'
 apply plugin: 'org.greenrobot.greendao' // 在项目的build.gradle里面添加GreenDao插件


 android {
     compileSdkVersion 26






     defaultConfig {
         applicationId "com.dhw.greendao"
         minSdkVersion 15
         targetSdkVersion 26
         versionCode 1
         versionName "1.0"


         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


     }


     buildTypes {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         }
     }


 }


 /**
  * 新建GreenDao的依赖作用域
  */
 greendao{
     targetGenDir 'src/main/java'        //固定格式:作用域代码文件夹
     daoPackage 'com.dhw.greendao.dao'   //固定格式:作用域代码指定的包名,根据自己Model的包名加上 .dao即可
     schemaVersion 1                     //固定格式:版本号
 }


 dependencies {
     implementation fileTree(dir: 'libs', include: ['*.jar'])


     implementation 'com.android.support:appcompat-v7:26.1.0'
     implementation 'com.android.support.constraint:constraint-layout:1.0.2'
     testImplementation 'junit:junit:4.12'
     androidTestImplementation 'com.android.support.test:runner:1.0.1'
     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'


     //添加GreenDao及数据库database的依赖
     compile 'org.greenrobot:greendao:3.2.2'
     compile 'org.greenrobot:greendao-generator:3.0.0'
     compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'//数据库加密(较新版本)


     compile 'net.zetetic:android-database-sqlcipher:3.5.6'      //数据库加密(较旧版本)
 }






24. //BottomTabBar实现底部导航页:

     compile 'com.hjm:BottomTabBar:1.1.1'



25. 视频播放(5个方法依赖)

      compile 'com.dou361.ijkplayer:jjdxm-ijkplayer:1.0.5'   //(ijkplayer库)


     compile 'com.supercwn.superrecycleview:superlibrary:1.2.0'//(需导入superlibrary库)


     //使用 JiaoZiVideoPlayer播放网络视频 SDK版本最低为 16
     compile 'cn.jzvd:jiaozivideoplayer:6.2.3'


     compile 'fm.jiecao:jiecaovideoplayer:5.5'  // 使用Jiecao播放器 播放视频,可以暂停播放,SDK版本最小为 16 


     /*ijkPlayer*/
     // required, enough for most devices.
     compile 'tv.danmaku.ijk.media:ijkplayer-java:0.7.8.1'
     compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.7.8.1'
     // Other ABIs: optional
     compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.7.8.1'
     compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.7.8.1'
     // ExoPlayer as IMediaPlayer: optional, experimental
     compile 'tv.danmaku.ijk.media:ijkplayer-exo:0.7.8.1'



26. //添加dagger依赖
     compile 'com.google.dagger:dagger:2.9'
     annotationProcessor 'com.google.dagger:dagger-compiler:2.9'


27.  //log日志:
     implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'




28. 

     使用此依赖需在 Project中的build.gradle文件中的


 allprojects {
        repositories {
         google()
         jcenter()
         maven { url "https://jitpack.io" }     //添加本行代码
        }
 }   
  
     //展示大图
     implementation 'com.github.chrisbanes:PhotoView:2.1.3'


29. //跑马灯效果
     implementation 'com.sunfusheng:marqueeview:1.3.3'


30. //流式布局 
     compile 'com.nex3z:flow-layout:1.0.0' 
 
    compile 'com.nex3z:flow-layout:1.2.2'
 
 
31. //Android使用 CircleImageView 实现圆形头像
    compile 'de.hdodenhof:circleimageview:2.1.0'
 
32. //Android智能下拉刷新框架
     compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.4-7' 
 
 
 
 
33. //Android集成B站弹幕库Danmaku
    compile 'com.github.ctiao:DanmakuFlameMaster:0.8.3'
   
34. //设置页面switchbutton
    compile 'com.kyleduo.switchbutton:library:1.4.1'
   
35. //FloatingActionButton浮动按钮动画效果
    compile 'com.getbase:floatingactionbutton:1.9.0'
   
36. //alibaba解析json字符串
    compile 'com.alibaba:fastjson:1.1.56.android'
   
37. //StatusBarUtil 标题栏工具类(实现动态变色标题栏)   参考:
    compile 'com.jaeger.statusbarutil:library:1.4.0'