帖子
帖子
用户
博客
课程
显示全部楼层
154
帖子
2
勋章
8179
Y币

[BUG] 使用qiniuStorage会出现崩溃

[复制链接]
发表于 2021-12-13 15:34:27
本帖最后由 jansma 于 2021-12-13 16:02 编辑

使用qiniuStorage的start方法在Android中会出现崩溃的情况,ios可以正常使用    退回到1.0.5之后可以后正常使用(1.0.6和1.0.7都会崩)
测试手机:Mi 10 Pro


Android logcat
  1. 2021-12-13 14:57:53.488 13578-14014/? E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
  2.     Process: com.yousi.sjtujj, PID: 13578
  3.     java.lang.NoSuchMethodError: No static method create([BLokhttp3/MediaType;)Lokhttp3/RequestBody; in class Lokhttp3/RequestBody; or its super classes (declaration of 'okhttp3.RequestBody' appears in /data/user/0/com.yousi.sjtujj/Anonymous-DexFile@3754589292.jar)
  4.         at com.qiniu.android.http.request.httpclient.ByteBody.getRequestBodyWithRange(ByteBody.java:57)
  5.         at com.qiniu.android.http.request.httpclient.ByteBody.writeTo(ByteBody.java:45)
  6.         at com.qiniu.android.http.request.httpclient.CountingRequestBody.writeTo(CountingRequestBody.java:54)
  7.         at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:72)
  8.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
  9.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
  10.         at com.qiniu.android.http.request.httpclient.SystemHttpClient$3.intercept(SystemHttpClient.java:179)
  11.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
  12.         at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
  13.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
  14.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
  15.         at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
  16.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
  17.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
  18.         at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
  19.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
  20.         at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
  21.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
  22.         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
  23.         at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
  24.         at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
  25.         at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
  26.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
  27.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
  28.         at java.lang.Thread.run(Thread.java:923)
  29. 2021-12-13 14:57:55.727 1789-2438/? E/InputDispatcher: channel '611be2a com.yousi.sjtujj/com.uzmap.pkg.EntranceActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
复制代码


发现meiQia模块中使用了依赖库
okhttp3.11.0


qiniuStorage中有依赖库
androidokhttp-4.2.2.jar4.2.2

把meiQia去掉就可以使用了,大概率就是2个模块依赖库okhttp冲突,我们这里美洽和七牛都需要使用,望能解决


380
帖子
4
勋章
6
Y币
已反馈给模块技术查看
0
帖子
1
勋章
2512
Y币
meiqia模块已经停止维护,请用meiqiaPlus。meiqiaPlus这周会升级一个版本,到时候会解决okhttp冲突问题
154
帖子
2
勋章
8179
Y币
什么时候更新,我们这里比较急
JP1688 · 2021-12-13 16:21meiqia模块已经停止维护,请用meiqiaPlus。meiqiaPlus这周会升级一个版本,到时候会解决okhttp冲突问题
0
帖子
1
勋章
2512
Y币
预计周三
jansma · 2021-12-13 16:30什么时候更新,我们这里比较急
您需要登录后才可以回帖 登录

本版积分规则