jenkinsci / java-client-api

A Jenkins API client for Java
MIT License
901 stars 469 forks source link

Android Unable to merge Dex #324

Open vanlooverenkoen opened 6 years ago

vanlooverenkoen commented 6 years ago

I tried to use your library in my Android App but it does not work. I added (kotlin):

implementation 'com.offbytwo.jenkins:jenkins-client:0.3.7'

But I got this error when I wanted to run my app

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

MaxmaxB commented 6 years ago

I have the same problem did you find any solution ?

khmarbaise commented 6 years ago

Can you show a full example how you are using the lib etc....otherwise it's hard to follow what might be wrong...

lidudutju commented 6 years ago

It looks like android SDK and the library have the same UserDataHandler Class.

Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED D8: Program type already present: org.w3c.dom.UserDataHandler

FAILURE: Build failed with an exception.