FATAL EXCEPTION: OkHttp Dispatcher
Process: , PID: 29199
java.lang.IncompatibleClassChangeError: Class 'com.xx.xx.a.d' does not implement interface 'okhttp3.Callback' in call to 'void okhttp3.Callback.onResponse(okhttp3.Call, okhttp3.Response)' (declaration of 'okhttp3.RealCall$AsyncCall' appears in base.apk)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141)
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:764)
E/MQSEventManagerDelegate: failed to get MQSService.
关键错误:does not implement interface 'okhttp3.Callback' in call to 'void okhttp3.Callback.onResponse
解决:混淆代码后,接口不能混淆,不然就找不到类,不然就会报上面的异常
首先看到的是异常: FATAL EXCEPTION: OkHttp Dispatcher,还以为是拦截器的问题,其实仔细看原因不难发现,是混淆导致的,接口也混淆了,所以找不到该类的实现方法