常用compile

全局设置:

buildscript {
   repositories {
       jcenter()
   }
   dependencies {
       classpath 'com.android.tools.build:gradle:2.0.0'
       classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
       // NOTE: Do not place your application dependencies here; they belong
       // in the individual module build.gradle files
   }
}

Model设置:

apply plugin: 'com.neenbedankt.android-apt'

dependencies {
   // Retrofit
   compile 'com.squareup.retrofit2:retrofit:2.0.2'
   compile 'com.squareup.retrofit2:converter-gson:2.0.2'
   compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2'

   // RxJava, RxAndroid
   compile 'io.reactivex:rxandroid:1.2.0'
   compile 'io.reactivex:rxjava:1.1.5'

   // RxLifecycle
   compile 'com.trello:rxlifecycle:0.6.1'
   compile 'com.trello:rxlifecycle-components:0.6.1'

   // RxBinding
   compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
   compile 'com.jakewharton.rxbinding:rxbinding-support-v4:0.4.0'
   compile 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:0.4.0'
   compile 'com.jakewharton.rxbinding:rxbinding-design:0.4.0'
   compile 'com.jakewharton.rxbinding:rxbinding-recyclerview-v7:0.4.0'

   // ButterKnife
   compile 'com.jakewharton:butterknife:8.0.1'
   apt 'com.jakewharton:butterknife-compiler:8.0.1'

   // Dagger2
   compile 'com.google.dagger:dagger:2.2'
   apt 'com.google.dagger:dagger-compiler:2.2'
   provided 'javax.annotation:jsr250-api:1.0'

   // Gson
   compile 'com.google.code.gson:gson:2.6.2'

   // Lombok (entity)
   compile 'org.projectlombok:lombok:1.16.8'

   // Guava: Google Core Libraries for Java
   compile 'com.google.guava:guava:19.0'

   // Glide 网络图片加载
   compile 'com.github.bumptech.glide:glide:3.7.0'

   // LitePal 数据库操作
   compile 'org.litepal.android:core:1.3.1'
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,803评论 19 139
  • 1.nav1.navigationBar.barStyle=UIBarStyleBlack; //改变导航栏背景颜...
    SadMine阅读 5,663评论 1 4
  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 175,905评论 25 709
  • 6分钟前,老大找我玩爱尚花艺坊老板的电话,我把客服电话给他了。 6分钟后,老板发微信问我:我和爱尚花艺坊客服打了6...
    我是硬柿子阅读 1,369评论 0 0
  • 文 |桂川且留下 一场雨,锁住了前行的脚步。水花绽放,溅起零乱的思绪。我无端想起,那把丢失的天堂伞。这是一把,曾被...
    川上六公子阅读 1,423评论 0 0

友情链接更多精彩内容