codelab-android-paging icon indicating copy to clipboard operation
codelab-android-paging copied to clipboard

Room Error: Not sure how to handle query method's return type

Open inkp80 opened this issue 3 years ago • 2 comments

Error on branch step13-19_network_and_database

Seem like occurring after adopt Kotlin 1.6.

https://github.com/googlecodelabs/android-paging/blob/step13-19_network_and_database/build.gradle

buildscript {
    ext.kotlin_version = '1.6.0'
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.4'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

It should be downgrade to kotlin 1.5 or upgrade to Room 2.4 (in alpha)

inkp80 avatar Feb 04 '22 07:02 inkp80

I faced the same issue. Resolved with downgrade to Kotlin 1.5. Thanks.

NickMitrokhin avatar Apr 30 '22 09:04 NickMitrokhin

Upgrade to Room 2.4 and add "androidx.room:room-paging:$roomVersion" (Android Studio/ Hedgehog)

mertakd avatar Jan 21 '24 04:01 mertakd