java.lang.NoSuchMethodError: No static method source(Ljava/net/Socket;)Lokio/Source; in class Lokio/Okio; or its super classes (declaration of 'okio.Okio' appears in /system/framework/okhttp.jar)

GitHub | hao-tian | 5 months 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

    GitHub comment 567#249122066

    GitHub | 5 months ago | hao-tian
    java.lang.NoSuchMethodError: No static method source(Ljava/net/Socket;)Lokio/Source; in class Lokio/Okio; or its super classes (declaration of 'okio.Okio' appears in /system/framework/okhttp.jar)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No static method source(Ljava/net/Socket;)Lokio/Source; in class Lokio/Okio; or its super classes (declaration of 'okio.Okio' appears in /system/framework/okhttp.jar)

      at okhttp3.internal.connection.RealConnection.connectSocket()
    2. okhttp3.internal.connection
      ConnectInterceptor.intercept
      1. okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:191)
      2. okhttp3.internal.connection.RealConnection.buildConnection(RealConnection.java:173)
      3. okhttp3.internal.connection.RealConnection.connect(RealConnection.java:114)
      4. okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193)
      5. okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129)
      6. okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98)
      7. okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
      7 frames
    3. okhttp3.internal.http
      RealInterceptorChain.proceed
      1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
      2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
      2 frames
    4. okhttp3.internal.cache
      CacheInterceptor.intercept
      1. okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)
      1 frame
    5. okhttp3.internal.http
      RealInterceptorChain.proceed
      1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
      2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
      3. okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
      4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
      5. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
      6. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
      7. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
      7 frames
    6. okhttp3
      RealCall$AsyncCall.execute
      1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
      2. okhttp3.RealCall.access$100(RealCall.java:33)
      3. okhttp3.RealCall$AsyncCall.execute(RealCall.java:120)
      3 frames
    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:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames