Retrofit proguard Cannot be cast

java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType




How to Fix:

`proguard-rules.pro`


-keep class com.google.gson.** { *; }
-keepclassmembers class com.google.gson.** { *; }

-keep class * implements com.google.gson.**
-keep class * extends com.google.gson.**

-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation