-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Crash with R8 full mode enabled with generics and Rx #3774
Comments
2.10.0-SNAPSHOT contains the fix you're looking for. Working fine for me with R8 full mode. |
See #3751 (comment) |
Thank you!, both of you :) |
UPDATE: The issue seems to be in AGP 7.2.2, not Retrofit. I have tried AGP 7.2 and 7.3 and both seem to be working fine with Retrofit with R8 full mode. Actually, this has started reoccurring in my case after I upgraded AGP from 7.0.4 to 7.2.2. Looks like 2.10.0-SNAPSHOT is missing a rule or two...
|
I have added the rules to proguard and also followed these, but even with AGP8 and R8 enabled with retrofit 2.9.0:
I get the following:
I have been fighting with this issue for quite a while and I would like to re-enable the code shrinking: can anyone help? |
Lines 1 to 5 in 3770704
|
@Goooler Appreciated! Thanks! |
See #3886 which fixes this in a general way rather than us playing whack-a-mole in each adapter jar. |
Thanks, but after adding this I got an error in response: with minify disabled I have no errors. |
That's Gson, not Retrofit. |
With AGP 8.0.2 this works with
|
@JakeWharton #3910 fixes issue with |
It helped me: |
Retrofit: 2.9.0
The crashing retrofit interface contains methods like these:
where JWTEnvelope is my own class:
I'm not sure if this is the same thing that is being discussed here #3588.
But I have the
@Keep
annotation so this should work if the issue is the one described there, isn't it?I get
The Single class is the one that can't be mapped apparently:
io.reactivex.Single
->lj.u
.Am I supposed to just keep every Single class? or is there a better way?
Thanks
The text was updated successfully, but these errors were encountered: