java.lang.NoSuchMethodError

No direct method <init>(Lokhttp3/Request;Lokhttp3/WebSocketListener;Ljava/util/Random;)V in class Lokhttp3/internal/ws/RealWebSocket; or its super classes (declaration of 'okhttp3.internal.ws.RealWebSocket' appears in /data/data/com.fouadkada.mysioapplicationpoc/files/instant-run/dex/slice-okhttp-ws-3.4.2_208c84938ec045e30eddb95384859b3e594c4d81-classes.dex)

Solutions on the web13344

  • via Stack Overflow by Fouad
    , 5 months ago
    No direct method <init>(Lokhttp3/Request;Lokhttp3/WebSocketListener;Ljava/util/Random;)V in class Lokhttp3/internal/ws/RealWebSocket; or its super classes (declaration of 'okhttp3.internal.ws.RealWebSocket' appears in /data/data/com.fouadkada.mysioapplicationpoc/files/instant-run/dex/slice-okhttp-ws-3.4.2_208c84938ec045e30eddb95384859b3e594c4d81-classes.dex)
  • via GitHub by fouadkada
    , 5 months ago
    No direct method <init>(Lokhttp3/Request;Lokhttp3/WebSocketListener;Ljava/util/Random;)V in class Lokhttp3/internal/ws/RealWebSocket; or its super classes (declaration of 'okhttp3.internal.ws.RealWebSocket' appears in /data/data/com.fouadkada.mysioapplicationpoc/files/instant-run/dex/slice-okhttp-ws-3.4.2_208c84938ec045e30eddb95384859b3e594c4d81-classes.dex)
  • via GitHub by AndrewBryukhov
    , 11 months ago
    No virtual method internalCache(Lokhttp3/OkHttpClient;)Lokhttp3/internal/InternalCache; in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/data/package.com/files/instant-run/dex/slice-okhttp-3.4.1_ec7308667a1c580313f7796370c10373cd70b1b4-classes.dex)
  • Stack trace

    • java.lang.NoSuchMethodError: No direct method <init>(Lokhttp3/Request;Lokhttp3/WebSocketListener;Ljava/util/Random;)V in class Lokhttp3/internal/ws/RealWebSocket; or its super classes (declaration of 'okhttp3.internal.ws.RealWebSocket' appears in /data/data/com.fouadkada.mysioapplicationpoc/files/instant-run/dex/slice-okhttp-ws-3.4.2_208c84938ec045e30eddb95384859b3e594c4d81-classes.dex) at okhttp3.OkHttpClient.newWebSocket(OkHttpClient.java:414) at io.socket.engineio.client.transports.WebSocket.doOpen(WebSocket.java:78) at io.socket.engineio.client.Transport$1.run(Transport.java:82) at io.socket.thread.EventThread.exec(EventThread.java:55) at io.socket.engineio.client.Transport.open(Transport.java:77) at io.socket.engineio.client.Socket.probe(Socket.java:472) at io.socket.engineio.client.Socket.onOpen(Socket.java:485) at io.socket.engineio.client.Socket.onHandshake(Socket.java:526) at io.socket.engineio.client.Socket.onPacket(Socket.java:499) at io.socket.engineio.client.Socket.access$1000(Socket.java:31) at io.socket.engineio.client.Socket$5.call(Socket.java:313) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Transport.onPacket(Transport.java:134) at io.socket.engineio.client.transports.Polling.access$700(Polling.java:17) at io.socket.engineio.client.transports.Polling$2.call(Polling.java:124) at io.socket.engineio.parser.Parser.decodePayload(Parser.java:251) at io.socket.engineio.client.transports.Polling._onData(Polling.java:134) at io.socket.engineio.client.transports.Polling.onData(Polling.java:106) at io.socket.engineio.client.transports.PollingXHR$5$1.run(PollingXHR.java:111) at io.socket.thread.EventThread$2.run(EventThread.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.