Android room persistent: AppDatabase_Impl does not exist

前端 未结 21 1398
日久生厌
日久生厌 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:16

    For Kotlin Developers


    if you checked Dao and Entity and also used Kapt and there is no problem, I guess there is a problem with your kotlin version if you are using kotlin 1.4 and above. update Room to last version from this link.


    2.3.0-alpha03 solved my problem.

提交回复
热议问题