In which task and step of the codelab can this issue be found?
[5. Add error handling in RecyclerView] - Add a binding adapter for the status ImageView
Describe the problem
Since Kotlin Version 1.5.30 when expressions need to be exhaustive. Otherwise it won't compile. The Codelab needs to be updated.
Possible solution:
Use the MarsApiStatus.ERROR case as else
Steps to reproduce?
See file at: app/src/main/java/com/example/android/marsphotos/BindingAdapters.kt
VersionsAndroid Studio version: 2021.3.1
API version of the emulator: 32
name: Android Basics Unit 4 issue about: Report problems with the Android Basics Unit 4 codelabs title: 'Android Basics Unit 4 issue:' labels: '' assignees: ''
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-internet-images?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-4-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-internet-images#4
In which task and step of the codelab can this issue be found? [5. Add error handling in RecyclerView] - Add a binding adapter for the status ImageView
Describe the problem Since Kotlin Version 1.5.30
when
expressions need to be exhaustive. Otherwise it won't compile. The Codelab needs to be updated.Possible solution: Use the
MarsApiStatus.ERROR
case aselse
Steps to reproduce? See file at:
app/src/main/java/com/example/android/marsphotos/BindingAdapters.kt
Versions Android Studio version: 2021.3.1 API version of the emulator: 32