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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Abhi
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via GitHub by Z3r0byte
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via GitHub by dragontamer8740
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by zuzu_yun
, 10 months ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by user1348718
, 2 years ago
via Stack Overflow by iEpic
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7266)
at android.view.ViewRootImpl.recomputeViewAttributes(ViewRootImpl.java:3490)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.ViewGroup.recomputeViewAttributes(ViewGroup.java:1357)
at android.view.View.needGlobalAttributesUpdate(View.java:9904)
at android.view.View.setFlags(View.java:10749)
at com.example.abhishek.focus_business_solution.SignIn$3$1.onResponse(SignIn.java:248)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

2 times, 1 year ago
6 times, 9 months ago
2 times, 1 year ago
Once, 1 year ago
Once, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.