Trying to use a java jar file
on Android
which uses Jackson lib. But getting the below errors, stack trace attached.
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/annotation/XmlElement;
Background:
We have a
java archive file,
which uses jackson library - JAXB Annotations for serializing to xml.We are trying call the functionality from Android app. The same worked fine on windows.
We are using the below gradle dependencies:
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.1.1'
implementation 'javax.xml.stream:stax-api:1.0-2'
implementation 'com.fasterxml:aalto-xml:1.0.0'
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-jaxb-annotations', version: '2.13.0'
Could someone please let me know what I am missing here. Does jackson works for Android to begin with?
Thanks.