Failed to resolve: android.arch.lifecycle:extensions:1.0.0-alpha1 android studio 3.0

后端 未结 7 1596
无人及你
无人及你 2021-02-05 02:09

I am building a project in android studio 3.0 with android plugin \'com.android.tools.build:gradle:3.0.0-alpha1\' and gradle version gradle-4.0-milestone-1-al

7条回答
  •  粉色の甜心
    2021-02-05 02:54

    am find solution work with me Room Dependencies for Room, including testing Room migrations and Room RxJava

    dependencies {
        def room_version = "1.1.1"
    
        implementation "android.arch.persistence.room:runtime:$room_version"
        annotationProcessor "android.arch.persistence.room:compiler:$room_version" // use kapt for Kotlin
    
        // optional - RxJava support for Room
        implementation "android.arch.persistence.room:rxjava2:$room_version"
    
        // optional - Guava support for Room, including Optional and ListenableFuture
        implementation "android.arch.persistence.room:guava:$room_version"
    
        // Test helpers
        testImplementation "android.arch.persistence.room:testing:$room_version"
    }
    

    as the document says: https://developer.android.com/topic/libraries/architecture/adding-components

提交回复
热议问题