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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by pcompassion
, 1 year ago
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)
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(WebSocketWriter.java:220)
at okhttp3.internal.ws.WebSocketWriter.writeMaskedSynchronized(WebSocketWriter.java:220)
at okhttp3.internal.ws.WebSocketWriter.writeControlFrameSynchronized(WebSocketWriter.java:142)
at okhttp3.internal.ws.WebSocketWriter.writeClose(WebSocketWriter.java:111)
at okhttp3.internal.ws.RealWebSocket.close(RealWebSocket.java:168)
at com.facebook.react.devsupport.JSPackagerWebSocketClient.closeWebSocketQuietly(JSPackagerWebSocketClient.java:104)
at com.facebook.react.devsupport.JSPackagerWebSocketClient.abort(JSPackagerWebSocketClient.java:196)
at com.facebook.react.devsupport.JSPackagerWebSocketClient.onFailure(JSPackagerWebSocketClient.java:168)
at okhttp3.internal.ws.RealWebSocket.readerErrorClose(RealWebSocket.java:217)
at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:100)
at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:152)
at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.