常用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'
}

你可能感兴趣的:(常用compile)