2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AndroidプロジェクトにRxJava2を導入する

Last updated at Posted at 2017-01-21

AndroidプロジェクトにRxJava2 + retrolambdaを導入するメモ

build.gradle

repositories {
    jcenter()
    maven {
        url "https://plugins.gradle.org/m2/"
    }
}

dependencies {
    classpath "gradle.plugin.me.tatarka:gradle-retrolambda:3.4.0"
}
app/build.gradle

apply plugin: "me.tatarka.retrolambda"

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    compile "io.reactivex.rxjava2:rxjava:2.0.1"
}
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?