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

Getting IncompatibleClassChangeError when parsing using Moshi, but works using Gson. This is tested on Android 5.0 #841

Closed
abitgen opened this issue Apr 28, 2019 · 2 comments

Comments

@abitgen
Copy link

abitgen commented Apr 28, 2019

Capture2

The code I am trying to run is

Moshi.Builder().add(KotlinJsonAdapterFactory()).build().adapter(classType).fromJson(jsonString)

The above error comes on Android 5.0,
But working fine in other later versions of Android

@swankjesse
Copy link
Member

This isn't enough to reproduce and fix. Can you please make an executable test case?

@wrozwad
Copy link

wrozwad commented May 29, 2020

This is related to https://issuetracker.google.com/issues/37045084. Unfortunately, it looks like they won't fix it :/

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

3 participants