Skip to content

Get Data from the Internet #227

@vetterjulius

Description

@vetterjulius

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

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? Step 8 "Parse JSON response with kotlinx.serilization"

Describe the problem
After following the steps in the codelab, when running the app, it crashes and Logcat shows the following error message:
java.lang.IllegalArgumentException: Unable to create converter for java.util.List<com.example.marsphotos.network.MarsPhoto>

Steps to reproduce?

  1. Go to Android Studio after completing the steps from the codelab.
  2. Click on Run 'MarsPhotos.app'
  3. See error java.lang.IllegalArgumentException: Unable to create converter for java.util.List<com.example.marsphotos.network.MarsPhoto>

Versions
Android Studio version: 2024.3.2
API version of the emulator: 36.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions