Skip to content

Get Data from the Internet #221

@Takahiro-Tsuji

Description

@Takahiro-Tsuji

Image

URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet?hl=en#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?
8. Parse the JSON response with kotlinx.serialization

Describe the problem
java.lang.IllegalArgumentException: Unable to create converter for java.util.List<com.example.marsphotos.network.MarsPhoto>
for method MarsApiService.getPhotos

Steps to reproduce?

  1. Run the app.
  2. When the app faces FATAL EXCEPTION, see the logcat.

Versions
_Android Studio version:_Android Studio Meerkat | 2024.3.1 Patch 2
_API version of the emulator:_Nexus 5X

Additional information
Include screenshots if they would be useful in clarifying the problem.
According to https://note.com/haine_rion23/n/n3a7c40c015da, I have changed the "org.jetbrains.kotlin.plugin.serialization" version to 1.9.10. It works but I cannot see why it is solved and would know how to review the update history of this plugin.

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