Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
inkp80 opened this issue Feb 4, 2022 · 2 comments
Open

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

inkp80 opened this issue Feb 4, 2022 · 2 comments

Comments

@inkp80
Copy link

inkp80 commented Feb 4, 2022

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)

@NickMitrokhin
Copy link

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

@mertakd
Copy link

mertakd commented Jan 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants