Android room persistent: AppDatabase_Impl does not exist

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

    Reading the example here: Room Example

    I fixed this error just using the correct (I guess it is) annotationProcessorFile, as follows:

    annotationProcessor "android.arch.persistence.room:compiler:"
    

    Also, I upgraded to 2.2.0 either in Room Version as in Lifecycle version.

    Once synchronized the graddle, I could start working with Room.

    So, Good luck! And let the code be with you!

提交回复
热议问题