|
[BUG]
使用qiniuStorage会出现崩溃
[复制链接]
本帖最后由 jansma 于 2021-12-13 16:02 编辑
使用qiniuStorage的start方法在Android中会出现崩溃的情况,ios可以正常使用 退回到1.0.5之后可以后正常使用(1.0.6和1.0.7都会崩)
测试手机:Mi 10 Pro
Android logcat
- 2021-12-13 14:57:53.488 13578-14014/? E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
- Process: com.yousi.sjtujj, PID: 13578
- 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)
- at com.qiniu.android.http.request.httpclient.ByteBody.getRequestBodyWithRange(ByteBody.java:57)
- at com.qiniu.android.http.request.httpclient.ByteBody.writeTo(ByteBody.java:45)
- at com.qiniu.android.http.request.httpclient.CountingRequestBody.writeTo(CountingRequestBody.java:54)
- at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:72)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
- at com.qiniu.android.http.request.httpclient.SystemHttpClient$3.intercept(SystemHttpClient.java:179)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
- at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
- at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
- at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
- at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
- at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
- at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
- at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
- at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
- at java.lang.Thread.run(Thread.java:923)
- 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模块中使用了依赖库
qiniuStorage中有依赖库
android | okhttp-4.2.2.jar | 4.2.2 |
把meiQia去掉就可以使用了,大概率就是2个模块依赖库okhttp冲突,我们这里美洽和七牛都需要使用,望能解决
|
|