美文网首页工作生活
Android开发常用依赖

Android开发常用依赖

作者: 好学人 | 来源:发表于2019-07-07 13:51 被阅读0次

ButterKnife

implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

OkHttp

implementation 'com.squareup.okhttp3:okhttp:3.12.7'

Retrofit

implementation 'com.squareup.retrofit2:retrofit:2.6.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'

RxJava

implementation 'io.reactivex.rxjava2:rxjava:2.2.10'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'

RxLifecycle

// In your project build.gradle file:
repositories {
    maven { url "https://jitpack.io" }
}
implementation 'com.github.nekocode.rxlifecycle:rxlifecycle:2.0'
implementation 'com.github.nekocode.rxlifecycle:rxlifecycle-compact:2.0' // Optional

Glide

implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

EventBus

implementation 'org.greenrobot:eventbus:3.1.1'

GreenDao

// In your root build.gradle file:
buildscript {
    repositories {
        jcenter()
        mavenCentral() // add repository
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.1'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
    }
}
// In your app modules app/build.gradle file:
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao' // apply plugin
 
dependencies {
    implementation 'org.greenrobot:greendao:3.2.2' // add library
}

Gson

implementation 'com.google.code.gson:gson:2.8.5'

Hugo

// in your project build.gradle
buildscript {
  repositories {
    mavenCentral()
  }

  dependencies {
    classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' // add plugin
  }
}
```java
// in your moudle buidle.gradle
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'

hugo {
  enabled true
}

相关文章

网友评论

    本文标题:Android开发常用依赖

    本文链接:https://www.haomeiwen.com/subject/apcchctx.html