ksoap2-extras dependency issue

42 views
Skip to first unread message

Ryan Wallach

unread,
Apr 19, 2019, 2:25:11 PM4/19/19
to ksoap2-android
If I include ksoap2-extras in my Android Studio project dependencies, then the project won't build:

  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class org.kobjects.util.Csv found in modules kobjects-j2me-0.0-SNAPSHOT-20040926-2.jar (net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2) and me4se-2.1.4-SNAPSHOT-20040926.jar (net.sourceforge.me4se:me4se:2.1.4-SNAPSHOT-20040926)

I see that the POM for ksoap2-extras declares a dependency on ksoap2-base and ksoap2-midp.  This is the problem.

ksoap2-base has a dependency on net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar which has an implementation of org.kobjects.util.Csv. 

ksoap2-midp has a dependency on net.sourceforge.me4se, and that JAR also has an implementation of org.kobjects.util.Csv.

Seems like the version of me4se in the Maven repository should be dependent on modules kobjects-j2me-0.0-SNAPSHOT-20040926-2.jar and not include the org.kobjects.util.Csv class.

Is there any way to work around this?


Reply all
Reply to author
Forward
0 new messages