FATAL EXCEPTION: OkHttp Dispatcher
Process: kr.co.sincetimes.dolg, PID: 2754
java.lang.IllegalAccessError: Illegal class access: ‘j.a.a.H.f.a’ attempting to access ‘j.a.a.l$a’ (declaration of ‘j.a.a.H.f.a’ appears in base.apk!classes2.dex)
at j.a.a.H.f.a.intercept(BridgeInterceptor.java:16)
at j.a.a.H.f.f.g(RealInterceptorChain.java:9)
at j.a.a.H.f.i.intercept(RetryAndFollowUpInterceptor.java:8)
at j.a.a.H.f.f.g(RealInterceptorChain.java:9)
at j.a.a.H.f.f.f(RealInterceptorChain.java:1)
at com.cocos.lib.websocket.CocosGzipRequestInterceptor.intercept(CocosGzipRequestInterceptor.java:9)
at j.a.a.H.f.f.g(RealInterceptorChain.java:9)
at j.a.a.H.f.f.f(RealInterceptorChain.java:1)
at j.a.a.w.c(RealCall.java:23)
at j.a.a.w$b.a(RealCall.java:2)
at j.a.a.H.b.run(NamedRunnable.java:3)
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:764)
项目中gradle 有依赖项如下:
implementation (‘com.squareup.retrofit2:retrofit:2.9.0’)
依赖的是 okhttp3 版本是 3.14.9好像比cocos creator 携带的库版本高, 打出包后,发送http请求有上面的报错,请大神帮忙解决下,多谢啦