Room “Not sure how to convert a Cursor to this method's return type”: which method?

后端 未结 20 1402
遇见更好的自我
遇见更好的自我 2020-12-14 14:15
Error:Not sure how to convert a Cursor to this method\'s return type
Error:Execution failed for task \':app:compileDebugJavaWithJavac\'.
Compilation failed; see the          


        
20条回答
  •  天命终不由人
    2020-12-14 15:11

    In my case I was using androidx dependencies for Room and android.arch. [old] dependencies for ViewModel and LiveData so I got this message

    Solution: Either use all androidx dependencies OR use all old dependencies of andrio.arch

提交回复
热议问题