farzaneh
farzaneh

Reputation: 21

Room database in android Failed to resolve 'android.arch.persistence.room:runtime:1.0.0'

I want to use Room DB but when I add dependencies the gradle has an error.

Failed to resolve 'android.arch.persistence.room:runtime:1.0.0'

I have an image of the error:

enter image description here

Upvotes: 2

Views: 964

Answers (2)

mehdi musavi
mehdi musavi

Reputation: 443

I had the same problem: you have to update: Gradle version, Gradle plugin and the last library version

Upvotes: 0

kinjal patel
kinjal patel

Reputation: 585

Add below code in your project build.gradle file.

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

Upvotes: 2

Related Questions