2

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

1

2 Answers 2

2

Add below code in your project build.gradle file.

allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } } } 
Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.