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

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

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

    Stack Overflow | 5 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 | 6 months ago | Philipp Bugaevskii
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  3. 0

    Screen Brightness - Processing 2.x and 3.x Forum

    processing.org | 2 weeks ago
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  4. Speed up your debug routine!

    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