bmob/bmob-android-sdk

Bmob和retrofit2冲突

Opened this issue · 1 comments

vbea commented

rxjava和okhttp的冲突都解决了,但是okio的冲突始终解决不了

 Duplicate class okio.InflaterSource found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.InputStreamSource found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Okio found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Options found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Options$Companion found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.OutputStreamSink found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.PeekSource found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Pipe found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Pipe$sink$1 found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Pipe$source$1 found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.RealBufferedSink found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.RealBufferedSink$outputStream$1 found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.RealBufferedSource found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.RealBufferedSource$inputStream$1 found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Segment found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Segment$Companion found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.SegmentPool found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.SegmentedByteString found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Sink found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.SocketAsyncTimeout found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Source found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Timeout found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Timeout$Companion found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Timeout$Companion$NONE$1 found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.Utf8 found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.internal.ByteStringKt found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
  Duplicate class okio.internal._Utf8Kt found in modules bmob-sdk-3.7.5-runtime.jar (cn.bmob.android:bmob-sdk:3.7.5) and okio-jvm-2.4.1.jar (com.squareup.okio:okio:2.4.1)
implementation  'cn.bmob.android:bmob-sdk:3.7.5'

这是我遇到的问题...难受!!!

我估计, 还是要用jar包依赖, 应该就不会出现这个问题.