Room Persistence lib implementation in Kotlin

后端 未结 5 1206
栀梦
栀梦 2020-12-03 17:23

I am implementing Room persistence lib in kotlin for my database implementation.

Following are my Entity, Dao and Database cla

5条回答
  •  失恋的感觉
    2020-12-03 17:49

    I made an example similar using Java and used to have same problem and solution was add APT line apt "android.arch.persistence.room:compiler:1.0.0-alpha1"

    without apply: apply plugin: 'kotlin-kapt'. Remove this line!!

    You have to clear project and rebuild it before run again and try uninstall existing app on phone or Virtual device. Hope you help.

提交回复
热议问题