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

Recently I’ve had the same problem but I was using Coroutines within the Dao function, e.g.:

@Query("SELECT * FROM Dummy")
suspend fun get(): LiveData<List<Dummy>>

And was unable to compile, but after removing the suspend everything worked just fine. It’s not needed when returning LiveData. suspend and LiveData seem not to work together (as of now).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)