Room annotation processor with Data binding

前端 未结 3 1515
感动是毒
感动是毒 2020-12-14 12:34

I have used Data binding in my existing code and now I am migrating to Room for persistence. I have followed the steps mentioned in Florina\'s Blog for room

My Code

3条回答
  •  失恋的感觉
    2020-12-14 13:19

    In my experience, the following reasons may cause the error:

    1. Incorrect getter/setter (missing or incorrect name)
    2. Incorrect return type in Dao
    3. annotationProcessor or kapt issues
    4. The default constructor is overridden (you need to keep the empty constructor for Room)

提交回复
热议问题