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 GitHub by daniele-athome
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via GitHub by c1rus
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by KellyMarchewa
, 1 year ago
Only the original thread that created a view hierarchy can touch its views.
via Stack Overflow by TwoStarII
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via GitHub by snipervld
, 2 years ago
Only the original thread that created a view hierarchy can touch its views.
via GitHub by bduyng
, 1 year 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:6814)
at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:978)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:5100)
at android.view.View.invalidateInternal(View.java:12826)
at android.view.View.invalidate(View.java:12790)
at android.view.View.invalidate(View.java:12774)
at android.widget.ImageView.invalidateDrawable(ImageView.java:248)
at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:387)
at android.graphics.drawable.ShapeDrawable.updateShape(ShapeDrawable.java:476)
at android.graphics.drawable.ShapeDrawable.onBoundsChange(ShapeDrawable.java:333)
at org.kontalk.util.MessageUtils.drawableToBitmap(MessageUtils.java:882)
at org.kontalk.ui.MessagingNotification.updateMessagesNotification(MessagingNotification.java:368)
at org.kontalk.ui.MessagingNotification$1.run(MessagingNotification.java:146)
at java.lang.Thread.run(Thread.java:833)

Users with the same issue

Once, 4 months ago
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
7 times, 9 months ago
4 times, 9 months ago
28 more bugmates

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