java.lang.NoSuchMethodError: No interface method read([BII)I in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.zibann.littlehome.debugjihae-1/base.apk:classes2.dex)

GitHub | pcompassion | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Having trouble with install/build

    GitHub | 5 months ago | pcompassion
    java.lang.NoSuchMethodError: No interface method read([BII)I in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.zibann.littlehome.debugjihae-1/base.apk:classes2.dex)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No interface method read([BII)I in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.zibann.littlehome.debugjihae-1/base.apk:classes2.dex)

      at okhttp3.internal.ws.WebSocketWriter.writeMaskedSynchronized()
    2. okhttp3.internal.ws
      RealWebSocket.close
      1. okhttp3.internal.ws.WebSocketWriter.writeMaskedSynchronized(WebSocketWriter.java:220)
      2. okhttp3.internal.ws.WebSocketWriter.writeMaskedSynchronized(WebSocketWriter.java:220)
      3. okhttp3.internal.ws.WebSocketWriter.writeControlFrameSynchronized(WebSocketWriter.java:142)
      4. okhttp3.internal.ws.WebSocketWriter.writeClose(WebSocketWriter.java:111)
      5. okhttp3.internal.ws.RealWebSocket.close(RealWebSocket.java:168)
      5 frames
    3. com.facebook.react
      JSPackagerWebSocketClient.onFailure
      1. com.facebook.react.devsupport.JSPackagerWebSocketClient.closeWebSocketQuietly(JSPackagerWebSocketClient.java:104)
      2. com.facebook.react.devsupport.JSPackagerWebSocketClient.abort(JSPackagerWebSocketClient.java:196)
      3. com.facebook.react.devsupport.JSPackagerWebSocketClient.onFailure(JSPackagerWebSocketClient.java:168)
      3 frames
    4. okhttp3.internal.ws
      RealWebSocket.readMessage
      1. okhttp3.internal.ws.RealWebSocket.readerErrorClose(RealWebSocket.java:217)
      2. okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:100)
      2 frames
    5. okhttp3.ws
      WebSocketCall$1.onResponse
      1. okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:152)
      2. okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
      3. okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
      3 frames
    6. okhttp3
      RealCall$AsyncCall.execute
      1. okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)
      1 frame
    7. okhttp3.internal
      NamedRunnable.run
      1. okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      1 frame
    8. 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