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

Stack Overflow | Abhi | 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

    Login using okhttp json

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

    Android : FATAL EXCEPTION AsyncTask #4

    Stack Overflow | 4 years ago | floflo41
    java.lang.RuntimeException: An error occured while executing doInBackground()
  3. 0

    SIP manual registration + Textview update

    Stack Overflow | 4 years ago | onizukaek
    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

  5. 0

    Android - admob banner crashes when setting back to visible

    Stack Overflow | 2 years ago | Ben James
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  6. 0

    What kinda error am I getting? Android Timer Error

    Stack Overflow | 4 years ago | iEpic
    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
    View.setVisibility
    1. android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7266)
    2. android.view.ViewRootImpl.recomputeViewAttributes(ViewRootImpl.java:3490)
    3. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    4. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    5. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    6. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    7. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    8. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    9. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    10. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    11. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    12. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    13. android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
    14. android.view.View.needGlobalAttributesUpdate(View.java:9904)
    15. android.view.View.setFlags(View.java:10749)
    16. android.view.View.setVisibility(View.java:7511)
    16 frames
  3. com.example.abhishek
    SignIn$3$1.onResponse
    1. com.example.abhishek.focus_business_solution.SignIn$3$1.onResponse(SignIn.java:248)
    1 frame
  4. okhttp3
    RealCall$AsyncCall.execute
    1. okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
    1 frame
  5. okhttp3.internal
    NamedRunnable.run
    1. okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
    1 frame
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames