android / android/codelab-android-paging

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

Open
#218 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
509
Forks
268
PR merge metrics
No merged PRs in 30d

Description

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

```groovy
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)

Contributor guide

Open the contributing guide

Research direction

Start with the build.gradle file in the step13-19_network_and_database branch and inspect the Kotlin and Room versions. Reproduce the query return-type error, then verify the reported version compatibility options; done means the codelab branch builds without the Room error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
database, mobile
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.