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 #151

Open fabio-santoni opened 1 month ago

fabio-santoni commented 1 month 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%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-getting-data-internet#7

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

In which task and step of the codelab can this issue be found? Task: get data from the Internet Step: Parse the JSON response with kotlinx.serialization

Describe the problem On the lesson it is specified to add dependency to library id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10"

The app compiles but when I try to run it on the emulator, it crashes.

On the "Solution code" at the end of the code lab, the used version is 1.9.10.

Changing the version solves the issue

Steps to reproduce?

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

Versions Android Studio version: Jellyfish 2023.3.1 API version of the emulator: 30

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