Room annotation processor with Data binding

前端 未结 3 1518
感动是毒
感动是毒 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:04

    I faced this issue while adding room dependencies. Add this in the below way to resolve the error.

     def roomVersion = "2.0.0-rc01"
    implementation "android.arch.persistence.room:runtime:$roomVersion"
    annotationProcessor "android.arch.persistence.room:runtime:$roomVersion"
    annotationProcessor "android.arch.persistence.room:compiler:$roomVersion"
    

提交回复
热议问题