Android Room Persistence library and Kotlin

前端 未结 6 727
迷失自我
迷失自我 2020-12-03 04:34

I am trying to write a simple app using Kotlin and Room Persistence Library. I followed the tutorial in the Android Persistence codelab.

Here is my AppDatabase<

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 04:50

    i almost gave up. but after doing just what dharmin007 said i also had to clean the project. that made it work. I've noticed that whenever you add kapt to gradle you MUST clean the project after synching gradle.

提交回复
热议问题