I've been unable to fix the crash when proGuard is enabled.
It says,
java.lang.NoSuchFieldError: No static field SERIALIZATION_AND_DESERIALIZATION of type Lmoe/banana/jsonapi2/Policy; in class Lmoe/banana/jsonapi2/Policy; or its superclasses
I did add these rules, but not working for some reason.
-keepattributes Signature
-keepclassmembers public abstract class moe.banana.jsonapi2.* {
;
}
-keepclassmembers class * {
@com.squareup.moshi.FromJson ;
@com.squareup.moshi.ToJson *;
}
I've been unable to fix the crash when proGuard is enabled. It says, java.lang.NoSuchFieldError: No static field SERIALIZATION_AND_DESERIALIZATION of type Lmoe/banana/jsonapi2/Policy; in class Lmoe/banana/jsonapi2/Policy; or its superclasses
I did add these rules, but not working for some reason.
-keepattributes Signature -keepclassmembers public abstract class moe.banana.jsonapi2.* { ; }
-keepclassmembers class * { @com.squareup.moshi.FromJson ; @com.squareup.moshi.ToJson *; }
Any help would be appreciated!