How to solve this error when using the Room Persistence Library with Kotlin?

0

When I run the app, I get a crash on the first call to the database:

java.lang.RuntimeException: Unable to start activity ComponentInfo{.../....ActivityLogin}: java.lang.RuntimeException: cannot find implementation for ....database.AppDatabase. AppDatabase_Impl does not exist

My database-related dependencies:

compile "android.arch.persistence.room:runtime:1.0.0"
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"

Q: I'm not using kapt in my application.

    
asked by anonymous 15.11.2017 / 19:19

1 answer

0

@ramaral solved the mystery!

  

If you previously used the Android support for annotation processors,   replace usages of the annotationProcessor configuration with kapt. If   your project contains Java classes, kapt will also take care of them.

source

    
15.11.2017 / 21:46