How to fix IncompatibleClassChangeError during Android Jackson Parsing using annotations in Android Lollipop?
问题 In our android app, we use Jackson Annotations in our models: @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "templateType", visible = true, defaultImpl = Default.class) @JsonSubTypes({ @Type(value = Subclass1.class, name = "tType1") We parse the json response using object mapper where klass is the class of the object file which we wish to parse to: getObjectMapper().readValue(json, klass); On rare scenarios on Android Lollipop devices, we get java