My project encountered this error:

I tried to fix it using this link
but I can not because I do not really understand the answer. Please tell me how to fix it. Thanks
I faced the same issue with Gson library and searched for the solution a lot but none of them work for me then I read the R8 full mode true changes and added this three-line in proguard and it worked fine for me.
if someone face the same issue, you can try this:
-keep class com.google.gson.reflect.TypeToken
-keep class * extends com.google.gson.reflect.TypeToken
-keep public class * implements java.lang.reflect.Type
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With