Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OneGreenHand opened this issue Apr 16, 2021 · 0 comments

Comments

@OneGreenHand
Copy link

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7208)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1120)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.requestLayout(View.java:19903)
at android.view.View.setFlags(View.java:11581)
at android.view.View.setVisibility(View.java:8134)
at cc.shinichi.library.view.ImagePreviewAdapter.loadFailed(ImagePreviewAdapter.java:368)
at cc.shinichi.library.view.ImagePreviewAdapter.access$200(ImagePreviewAdapter.java:52)
at cc.shinichi.library.view.ImagePreviewAdapter$7$1.run(ImagePreviewAdapter.java:327)
at java.lang.Thread.run(Thread.java:761)
Back traces ends.

都是指向ImagePreviewAdapter的368行
版本:android 8.0 android 7.1.1 android 10
机型:Mi Note 2 GIONEE GN5007 SEA-AL00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant