Abhi
08/29/2023, 2:09 PMval room_version = "2.5.2"
implementation("androidx.room:room-ktx:$room_version")
kapt("androidx.room:room-compiler:$room_version")
and this is how my dao file looks like.
interface CurrencyDao {
@Insert
fun insertCurrency(currency: Currency): Long
@Query("SELECT * FROM Currency")
suspend fun fetchCurrencies(): List<Currency>
}
and i'm getting below error on build. i saw top slackoverflow results for above. but it was not helpful.
error: Not sure how to convert a Cursor to this method's return type (java.lang.Object).
public abstract java.lang.Object fetchCurrencies(@org.jetbrains.annotations.NotNull
s3rius
08/29/2023, 7:24 PMimplementation("androidx.room:room-runtime:$room_version")
as well.ceedee
09/25/2023, 12:41 PMs3rius
09/25/2023, 7:26 PMceedee
09/26/2023, 7:31 AMAbhi
10/08/2023, 7:14 PM2.6.0-beta01