You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bit of an edge case here—but if all of the functions in a Retrofit interface are unused, R8 will strip them. This causes the following Proguard rule to miss:
Bit of an edge case here—but if all of the functions in a Retrofit interface are unused, R8 will strip them. This causes the following Proguard rule to miss:
retrofit/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
Line 31 in dfdad42
Then once you try to instantiate the stripped service class, you get a fairly nondescript
ClassCastException
from Retrofit. E.g.:Replacing the referenced rule with the following one fixes the issue for us:
(Source: here)
Note: I barely know how to proguard, so this definitely requires some scrutiny. Raising issue here for visibility.
The text was updated successfully, but these errors were encountered: