Add Architecture Components

suggest change

Project build.gradle

allprojects {
    repositories {
        // Add this if you use Gradle 4.0+
        // Add this if you use Gradle < 4.0
        maven { url '' }

ext {
    archVersion = '1.0.0-alpha5'

Application build gradle

// For Lifecycles, LiveData, and ViewModel
compile "android.arch.lifecycle:runtime:$archVersion"
compile "android.arch.lifecycle:extensions:$archVersion"
annotationProcessor "android.arch.lifecycle:compiler:$archVersion"

// For Room
compile "$archVersion"
annotationProcessor "$archVersion"

// For testing Room migrations
testCompile "$archVersion"

// For Room RxJava support
compile "$archVersion"

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents