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
In my case i was this problem when i used LiveData> in Dao class for getting all things from Room and i fixed this when i change ArrayList with List.
LiveData>
ArrayList
List
Example(Kotlin):
@Dao interface ExampleDao { @Query("SELECT * from example_table") fun getAllExample():LiveData> }