java.lang.NoSuchMethodError:com.squareup.okhttp.internal.Internal.callEngineGetConnection

时间:2016-03-25 15:52:04

标签: java android networking okhttp

我最近将okhttp从2.4.0更新为2.7.5,并在启动android应用后尝试连接并向我提供以下错误

  

致命异常:OkHttp Dispatcher                                                                        java.lang.NoSuchMethodError:   com.squareup.okhttp.internal.Internal.callEngineGetConnection                                                                            在   com.squareup.okhttp.ws.WebSocketCall.createWebSocket(WebSocketCall.java:154)                                                                            在   com.squareup.okhttp.ws.WebSocketCall.access $ 000(WebSocketCall.java:42)                                                                            在   com.squareup.okhttp.ws.WebSocketCall $ 1.onResponse(WebSocketCall.java:102)                                                                            在com.squareup.okhttp.Call $ AsyncCall.execute(Call.java:177)                                                                            在   com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)                                                                            在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)                                                                            在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:573)                                                                            在java.lang.Thread.run(Thread.java:838)

1 个答案:

答案 0 :(得分:0)

刚刚更新到okhttp 3.2.0,似乎正常工作