Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Data from the Internet #187

Open
AdriPeMa opened this issue Nov 30, 2024 · 1 comment
Open

Get Data from the Internet #187

AdriPeMa opened this issue Nov 30, 2024 · 1 comment

Comments

@AdriPeMa
Copy link

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:

Spanish

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

Add kotlinx.serialization library dependencies

Describe the problem

In this step you tell us to implement id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10" and if this doesn't match the version of Kotlin you are using you would get an error trying to run the app at the end of the codelab.

Steps to reproduce?

  1. Go to... the device to run the app at the final step of the codelab.
  2. Click on... the app icon to run it.
  3. See error... the error in the logcat says: Caused by: kotlinx.serialization.SerializationException: Serializer for class 'MarsPhoto' is not found. Please ensure that class is marked as '@serializable' and that the serialization compiler plugin is applied.

Versions
_Android Studio version:_17.0.11+0--11852314
_API version of the emulator:_35

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

@LucasFebatis
Copy link

I encountered the same error here. This step is not mentioned in the codelab, but in my case, I managed to proceed by adding the plugin to the build.gradle at the project level as well:

id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10" apply false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants