codelab-android-paging
codelab-android-paging copied to clipboard
Room Error: Not sure how to handle query method's return type
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)
I faced the same issue. Resolved with downgrade to Kotlin 1.5. Thanks.
Upgrade to Room 2.4 and add "androidx.room:room-paging:$roomVersion" (Android Studio/ Hedgehog)