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

Fix sample-viewmodel running #430

Merged
merged 2 commits into from
May 29, 2024
Merged

Fix sample-viewmodel running #430

merged 2 commits into from
May 29, 2024

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Apr 24, 2024

Caused by: java.lang.IllegalArgumentException: Cannot serialize Kotlin type com.example.molecule.viewmodel.PupperPicsApi$ListResponse.
Reflective serialization of Kotlin classes without using kotlin-reflect has undefined and unexpected behavior.
Please use KotlinJsonAdapterFactory from the moshi-kotlin artifact or use code gen from the moshi-kotlin-codegen artifact.
  at com.squareup.moshi.ClassJsonAdapter$1.create(ClassJsonAdapter.java:98)
  at com.squareup.moshi.Moshi.adapter(Moshi.java:146)
  at com.squareup.moshi.Moshi.adapter(Moshi.java:106)

  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

```
Caused by: java.lang.IllegalArgumentException: Cannot serialize Kotlin type com.example.molecule.viewmodel.PupperPicsApi$ListResponse.
Reflective serialization of Kotlin classes without using kotlin-reflect has undefined and unexpected behavior.
Please use KotlinJsonAdapterFactory from the moshi-kotlin artifact or use code gen from the moshi-kotlin-codegen artifact.
  at com.squareup.moshi.ClassJsonAdapter$1.create(ClassJsonAdapter.java:98)
  at com.squareup.moshi.Moshi.adapter(Moshi.java:146)
  at com.squareup.moshi.Moshi.adapter(Moshi.java:106)
```
@JakeWharton JakeWharton merged commit 1d2642d into cashapp:trunk May 29, 2024
1 check passed
@Goooler Goooler deleted the fix-sample branch May 30, 2024 01:21
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

Successfully merging this pull request may close these issues.

2 participants