java.lang.NoSuchMethodError: No static method checkIsOnMainThread()V in class Lorg/webrtc/ThreadUtils; or its super classes (declaration of 'org.webrtc.ThreadUtils' appears in /data/app/org.appspot.apprtc-2/base.apk)

GitHub | ngochuu90 | 6 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 1#254401035

    GitHub | 6 months ago | ngochuu90
    java.lang.NoSuchMethodError: No static method checkIsOnMainThread()V in class Lorg/webrtc/ThreadUtils; or its super classes (declaration of 'org.webrtc.ThreadUtils' appears in /data/app/org.appspot.apprtc-2/base.apk)
  2. 0

    Failed to load jingle_peerconnection_so

    GitHub | 6 months ago | ngochuu90
    java.lang.NoSuchMethodError: No static method checkIsOnMainThread()V in class Lorg/webrtc/ThreadUtils; or its super classes (declaration of 'org.webrtc.ThreadUtils' appears in /data/app/org.appspot.apprtc-2/base.apk)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No static method checkIsOnMainThread()V in class Lorg/webrtc/ThreadUtils; or its super classes (declaration of 'org.webrtc.ThreadUtils' appears in /data/app/org.appspot.apprtc-2/base.apk)

      at org.webrtc.SurfaceViewRenderer.init()
    2. org.webrtc
      SurfaceViewRenderer.init
      1. org.webrtc.SurfaceViewRenderer.init(SurfaceViewRenderer.java:85)
      2. org.webrtc.SurfaceViewRenderer.init(SurfaceViewRenderer.java:73)
      2 frames
    3. org.appspot.apprtc
      CallActivity.onCreate
      1. org.appspot.apprtc.CallActivity.onCreate(CallActivity.java:166)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5975)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2413)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522)
      5. android.app.ActivityThread.access$800(ActivityThread.java:169)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
      7. android.os.Handler.dispatchMessage(Handler.java:111)
      8. android.os.Looper.loop(Looper.java:194)
      9. android.app.ActivityThread.main(ActivityThread.java:5546)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:967)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
      2 frames