android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

  1. 0

    Libgdx: Application crashes with CalledFromWrongThreadException exception when GestureDetector tries to change screen brightness

    Stack Overflow | 2 months ago | Arjun Radhakrishnan
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  2. 0

    Crash with Appodeal SDK "REWARDED_VIDEO"

    Stack Overflow | 3 months ago | Philipp Bugaevskii
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  3. 0

    App crashes on clicking on same item

    Stack Overflow | 3 years ago | Darko Petkovski
    java.lang.RuntimeException: An error occured while executing doInBackground()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MillennialMedia SDK custom close silently fails

    GitHub | 2 years ago | GuillaumeLachaud
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

    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. android.view.ViewRootImpl$CalledFromWrongThreadException

      Only the original thread that created a view hierarchy can touch its views.

      at android.view.ViewRootImpl.checkThread()
    2. Android Platform
      Window.dispatchWindowAttributesChanged
      1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6293)
      2. android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:900)
      3. android.view.View.requestLayout(View.java:17378)
      4. android.view.View.setLayoutParams(View.java:11373)
      5. android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:302)
      6. android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:74)
      7. android.app.Activity.onWindowAttributesChanged(Activity.java:2608)
      8. android.view.Window.dispatchWindowAttributesChanged(Window.java:832)
      8 frames
    3. Android
      PhoneWindow.dispatchWindowAttributesChanged
      1. com.android.internal.policy.impl.PhoneWindow.dispatchWindowAttributesChanged(PhoneWindow.java:3879)
      1 frame
    4. Android Platform
      Window.setAttributes
      1. android.view.Window.setAttributes(Window.java:863)
      1 frame
    5. com.mygdx.clock
      AndroidLauncher$GestureHandler.pan
      1. com.mygdx.clock.AndroidLauncher$GestureHandler.pan(AndroidLauncher.java:99)
      1 frame
    6. libGDX Core
      GestureDetector.touchDragged
      1. com.badlogic.gdx.input.GestureDetector.touchDragged(GestureDetector.java:159)
      2. com.badlogic.gdx.input.GestureDetector.touchDragged(GestureDetector.java:126)
      2 frames
    7. libGDX Android Backend
      AndroidGraphics.onDrawFrame
      1. com.badlogic.gdx.backends.android.AndroidInput.processEvents(AndroidInput.java:382)
      2. com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:457)
      2 frames
    8. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1522)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
      2 frames