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
Update AGP 8.3.1 broken deserialization #2606
Comments
If this issue came from AGP configuration, it probably makes more sense to file it to the Google tracker (https://issuetracker.google.com/issues?q=Android%2F). |
That's the mistake.
|
For information, no problem with version 7.4.2, but as of version 8.0.0 of gralde I have the problem. |
It's hard to say this without classes definitions and other setup, but maybe Proguard config is too aggressive and cuts off either your polymorphic module or |
Yes, it must be too aggressive because it works with this. |
Rules supplied by the library should work with full mode, too. Do you have any named companions? ( |
We also experienced this issue in our app. I don't have a reproduction sample, but I fairly certain that this is an AGP issue. We noticed the issue in our latest release, which upgrades AGP from 8.2.1 to 8.4.0. I can also confirm that the issue only happens with R8 "full mode" enabled and we do not use any named companion objects. We also more or less confirmed that the issue is only caused by the AGP 8.4.0 upgrade with "full mode" enabled and not by the Kotlin or I reported the issue to Google at https://issuetracker.google.com/issues/340494391 |
Hello, I have switched to agp 8.3.1 on my Android project and if I activate the minify I have the following problem.
kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 0: Serializer for subclass
I suppose it's the JSON I'm receiving because there's a key with "type" but it's not used for polymorphism. But what I don't understand is why it works fine without minify.
Thank you for your help.
Environment
The text was updated successfully, but these errors were encountered: