whenever I want to wrapp some data in a jackson object mapper, I got a runtime error with following message:
07-07 17:44:59.049 19642-20156/com.app.teamchannel E/AndroidRuntime: FATAL EXCEPTION: SyncAdapterThread-1 java.lang.VerifyError: org/codehaus/jackson/map/ObjectMapper
First time I encountered this error was after I included google analytics in gradle like:
compile 'com.google.android.gms:play-services-analytics:8.4.0'
Can anyone help please? I've already spent couple of hours with no solution until now.
Complete exception:
Could not find class 'org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospector', referenced from method org.codehaus.jackson.map.ObjectMapper. Could not find class 'org.codehaus.jackson.map.deser.StdDeserializerProvider', referenced from method org.codehaus.jackson.map.ObjectMapper. Could not find class 'org.codehaus.jackson.util.TokenBuffer', referenced from method org.codehaus.jackson.map.ObjectMapper._convert Could not find class 'org.codehaus.jackson.map.deser.StdDeserializationContext', referenced from method org.codehaus.jackson.map.ObjectMapper._createDeserializationContext Could not find class 'org.codehaus.jackson.util.DefaultPrettyPrinter', referenced from method org.codehaus.jackson.map.ObjectMapper._defaultPrettyPrinter FATAL EXCEPTION: SyncAdapterThread-1 java.lang.VerifyError: org/codehaus/jackson/map/ObjectMapper at com.app.teamchannel.adapters.MySyncAdapter.onPerformSync(MySyncAdapter.java:2205) at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:247) FATAL EXCEPTION: SyncAdapterThread-1 java.lang.VerifyError: org/codehaus/jackson/map/ObjectMapper at com.app.teamchannel.adapters.MySyncAdapter.onPerformSync(MySyncAdapter.java:2205) at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:247)