google-developer-training / basic-android-kotlin-compose-training-mars-photos

Solution code for Android Basics in Kotlin course
https://developer.android.com/courses/android-basics-kotlin/course?gclid=CjwKCAjw4c-ZBhAEEiwAZ105RTyT-iaLHzrhMBUXdMhO230ZDwOwxxI2x4RgK8DwBxK8t1h0wmU_QxoCi4YQAvD_BwE
Apache License 2.0
66 stars 58 forks source link

Composable not ready to recieve viewmodel despite instruction to do so #45

Open bellaisgroovy opened 1 year ago

bellaisgroovy commented 1 year ago

(https://developer.android.com/codelabs/basic-android-kotlin-compose-add-repository?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-add-repository#5)

The problem is in step 6 of the "Load and display images from the internet" codelab

In instruction 8 of step 6 it says to "Update the code to pass variable viewModel as an argument to the MarsPhotosApp composable." However, the MarsPhotosApp composable has not been updated to accept a viewModel in the constructor. I checked through previous steps and am using the repo-starter but I could not find an instruction to update the composable anywhere. If however I am mistaken I am very sorry for wasting your time with a false report.

Versions Android Studio Electric Eel | 2022.1.1 Patch 2 API 31

osuleymanova commented 1 year ago

Duplicate of #38, #31, #29, #25, #20.