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 54 forks source link

Get Data from the Internet - Error in HomeScreen.kt in Step 7 to match the code in MarsPhotosApp.kt #139

Open scharffc opened 2 months ago

scharffc commented 2 months ago

URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-1%3Fcontinue%3Dhttps%253A%252F%252Fdeveloper.android.com%252Fcourses%252Fpathways%252Fandroid-development-with-kotlin-11%2523codelab-%252Fcodelabs%252Fkotlin-android-training-internet-data%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-getting-data-internet#6

Specify the language of the codelab if it is not English: English

In which task and step of the codelab can this issue be found? 7

Describe the problem You have the code for HomeScreen:

image

It needs to be replaced by:

image

to match the code in MarsPhotosApp.kt:

image

Steps to reproduce?

  1. Go to ...
  2. Click on...
  3. See error...

Versions Android Studio version: API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.