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)

Stack Overflow | Fouad | 2 weeks ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    socket.io and okhttp3 conflict

    Stack Overflow | 2 weeks ago | Fouad
    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)
  2. 0

    Conflict with okhttp3

    GitHub | 2 weeks ago | fouadkada
    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)
  3. 0

    okHttp3 java.lang.NoSuchMethodError: No virtual method setCallWebSocket

    Stack Overflow | 7 days ago | Leonardo Deleon
    java.lang.NoSuchMethodError: No virtual method setCallWebSocket(Lokhttp3/Call;)V in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/data/appli.example.com/files/instant-run/dex/slice-okhttp-3.6.0_29bb10e5f590229716bfa8daf196d09ea67f56a8-classes.dex)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.NoSuchMethodError

    GitHub | 6 months ago | noosxe
    java.lang.NoSuchMethodError: No virtual method callEnqueue(Lokhttp3/Call;Lokhttp3/Callback;Z)V in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/app/co.emotech.olly-1/base.apk)
  6. 0

    java.lang.NoSuchMethodError - okhttp3 (Android)

    Stack Overflow | 6 months ago | Abhilash
    java.lang.NoSuchMethodError: No virtual method callEnqueue(Lokhttp3/Call;Lokhttp3/Callback;Z)V in class Lokhttp3/internal/Internal; or its super classes (declaration of 'okhttp3.internal.Internal' appears in /data/app/com.myproj.sample-2/base.apk)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. okhttp3
      OkHttpClient.newWebSocket
      1. okhttp3.OkHttpClient.newWebSocket(OkHttpClient.java:414)
      1 frame
    3. io.socket.engineio
      Transport$1.run
      1. io.socket.engineio.client.transports.WebSocket.doOpen(WebSocket.java:78)
      2. io.socket.engineio.client.Transport$1.run(Transport.java:82)
      2 frames
    4. io.socket.thread
      EventThread.exec
      1. io.socket.thread.EventThread.exec(EventThread.java:55)
      1 frame
    5. io.socket.engineio
      Socket$5.call
      1. io.socket.engineio.client.Transport.open(Transport.java:77)
      2. io.socket.engineio.client.Socket.probe(Socket.java:472)
      3. io.socket.engineio.client.Socket.onOpen(Socket.java:485)
      4. io.socket.engineio.client.Socket.onHandshake(Socket.java:526)
      5. io.socket.engineio.client.Socket.onPacket(Socket.java:499)
      6. io.socket.engineio.client.Socket.access$1000(Socket.java:31)
      7. io.socket.engineio.client.Socket$5.call(Socket.java:313)
      7 frames
    6. io.socket.emitter
      Emitter.emit
      1. io.socket.emitter.Emitter.emit(Emitter.java:117)
      1 frame
    7. io.socket.engineio
      PollingXHR$5$1.run
      1. io.socket.engineio.client.Transport.onPacket(Transport.java:134)
      2. io.socket.engineio.client.transports.Polling.access$700(Polling.java:17)
      3. io.socket.engineio.client.transports.Polling$2.call(Polling.java:124)
      4. io.socket.engineio.parser.Parser.decodePayload(Parser.java:251)
      5. io.socket.engineio.client.transports.Polling._onData(Polling.java:134)
      6. io.socket.engineio.client.transports.Polling.onData(Polling.java:106)
      7. io.socket.engineio.client.transports.PollingXHR$5$1.run(PollingXHR.java:111)
      7 frames
    8. io.socket.thread
      EventThread$2.run
      1. io.socket.thread.EventThread$2.run(EventThread.java:80)
      1 frame
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames