Android room persistent: AppDatabase_Impl does not exist

前端 未结 21 1403
日久生厌
日久生厌 2020-11-29 01:09

My app database class

@Database(entities = {Detail.class}, version = Constant.DATABASE_VERSION)
public abstract class AppDatabase extends RoomDatabase {

            


        
21条回答
  •  北海茫月
    2020-11-29 01:31

    I had this error when I missed

    @Database(entity="{})
    

    Ensure that the entity model specified in the annotation above refers to the particular model class and also ensure that the necessary annotation:

    @Entity(tableName = "" ...)
    

    is properly defined and you'd be good

提交回复
热议问题