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

Solutions on the web

via Stack Overflow by Akimoto Akira
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by Unknown author, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via GitHub by itachi1706
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by Daniel Veldaz
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via co.uk by Unknown author, 2 years ago
via Stack Overflow by Unknown author, 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:6072)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:861)
at android.view.View.requestLayout(View.java:16459)
at android.view.View.requestLayout(View.java:16459)
at android.view.View.requestLayout(View.java:16459)
at android.view.View.requestLayout(View.java:16459)
at android.view.View.requestLayout(View.java:16459)
at android.view.View.requestLayout(View.java:16459)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:352)
at android.view.View.requestLayout(View.java:16459)
at android.widget.TextView.checkForRelayout(TextView.java:6607)
at android.widget.TextView.setText(TextView.java:3820)
at android.widget.TextView.setText(TextView.java:3678)
at android.widget.TextView.setText(TextView.java:3653)
at com.example.admin.blue.MainActivity$1.run(MainActivity.java:56)

Users with the same issue

17 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Once, 4 months ago
28 more bugmates

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