Android room persistent: AppDatabase_Impl does not exist

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

    Not in the case of OP, but this also happens when you mistakenly use implementation instead of annotationProcessor like this:

    implementation "android.arch.persistence.room:compiler:x.x.x"
    

    Instead of this:

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

提交回复
热议问题