android.view.ViewRootImpl$CalledFromWrongThreadException

Only the original thread that created a view hierarchy can touch its views.

Solutions on the web422

  • via GitHub by GorbadPS3
    , 7 months ago
    Only the original thread that created a view hierarchy can touch its views.
  • via GitHub by Pitel
    , 9 months ago
    Only the original thread that created a view hierarchy can touch its views.
  • Only the original thread that created a view hierarchy can touch its views.
  • Stack trace

    • android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6566) at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:911) at android.view.View.requestLayout(View.java:18733) at android.view.View.requestLayout(View.java:18733) at android.view.View.requestLayout(View.java:18733) at android.view.View.requestLayout(View.java:18733) at android.view.View.requestLayout(View.java:18733) at android.view.View.requestLayout(View.java:18733) at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360) at android.view.View.requestLayout(View.java:18733) at android.view.View.setFlags(View.java:10595) at android.view.View.setVisibility(View.java:7431) at de.tum.in.tumcampusapp.activities.StartupActivity.init(StartupActivity.java:111) at de.tum.in.tumcampusapp.activities.StartupActivity.access$000(StartupActivity.java:52) at de.tum.in.tumcampusapp.activities.StartupActivity$1.run(StartupActivity.java:137) at java.lang.Thread.run(Thread.java:818)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 5 months ago
    2 times, 1 year ago
    Once, 1 year ago
    2 times, 1 year ago
    Once, 2 weeks ago
    28 more bugmates