添加组件到项目

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.google.com' }
    }
}

For Lifecycles, LiveData, and ViewModel, add:

compile "android.arch.lifecycle:runtime:1.0.0-alpha3"
compile "android.arch.lifecycle:extensions:1.0.0-alpha3"
annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha3"

For Room, add:

compile "android.arch.persistence.room:runtime:1.0.0-alpha3"
annotationProcessor "android.arch.persistence.room:compiler:1.0.0-alpha3"

For testing Room migrations, add:

testCompile "android.arch.persistence.room:testing:1.0.0-alpha3"

For Room RxJava support, add:

compile "android.arch.persistence.room:rxjava2:1.0.0-alpha3"

你可能感兴趣的:(添加组件到项目)