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
The class TypeToken
requires a type parameter.
Looking at your code, it looks like you should replace
Type listType = new TypeToken() {
}.getType();
with
Type listType = new TypeToken<List<Face>>() {
}.getType();