I recently saw the new feature announced on Google I/O Room Persistence Library to work with Sqlite databases on Android. I have been looking to the official documentation and I
Open the build.gradle
file for your project (not the ones for your app or module) and add:
allprojects {
repositories {
google()
jcenter()
}
}
Open the build.gradle
file for your app or module and add the artifacts that you need as dependencies:
dependencies {
implementation "android.arch.persistence.room:runtime:1.0.0"
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
}
Reference: Android Adding Components