When trying to use the java sdk in android studio by importing the gradle dependency (as described here https://jitpack.io/#bunq/sdk_java/1.14.18), an immense amount of duplicate class errors appear.
I tried solving this by excluding the duplicate module from the import with
exclude group: "com.sun.xml.bind", module: "jaxb-impl"
however, this makes some of the default operations from the sdk run into runtime errors (e.g. :
which I suspect is caused by the now missing imports. Is there a proper way to use the java sdk in android studio which circumvents this?