Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants