Android room persistent: AppDatabase_Impl does not exist

For those working with Kotlin, try changing annotationProcessor to kapt in the apps build.gradle for example: // Extensions = ViewModel + LiveData implementation “android.arch.lifecycle:extensions:1.1.0” kapt “android.arch.lifecycle:compiler:1.1.0” // Room implementation “android.arch.persistence.room:runtime:1.0.0” kapt “android.arch.persistence.room:compiler:1.0.0” also remember to add this plugin apply plugin: ‘kotlin-kapt’ to the top of the app level build.gradle file and do a clean and … Read more

Room – Schema export directory is not provided to the annotation processor so we cannot export the schema

In the build.gradle file for your app module, add this to the defaultConfig section (under the android section). This will write out the schema to a schemas subfolder of your project folder. javaCompileOptions { annotationProcessorOptions { arguments += [“room.schemaLocation”: “$projectDir/schemas”.toString()] } } Like this: // … android { // … (compileSdkVersion, buildToolsVersion, etc) defaultConfig { … Read more