“Type of the parameter must be a class annotated with @Entity” while creating Generic DAO interface in Room

Changed in gradle from this:

kapt "androidx.room:room-compiler:$roomVersion"

to this:

annotationProcessor "androidx.room:room-compiler:$room_version"

Leave a Comment