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
This works with the latest version of Android Studio 3.1.
Under Gradle Scripts folder, in the Project build.gradle, add:
allprojects {
repositories {
...
maven { url 'https://maven.google.com' }
}
}
In the Module build.gradle, add:
dependencies {
...
implementation "android.arch.persistence.room:runtime:1.0.0"
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
}
Source: https://developer.android.com/topic/libraries/architecture/adding-components.html