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

Unable to stop activity ava.lang.IndexOutOfBoundsException: Index: 2, Size: 2 #494

Open
RichardDivid opened this issue Oct 8, 2019 · 3 comments

Comments

@RichardDivid
Copy link

No description provided.

@RichardDivid
Copy link
Author

at android 8.0.0 or 8.0.1,it occur a crash of below:
java.lang.RuntimeException: Unable to stop activity {VideoPlayActivity}: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at android.app.ActivityThread.handleSleeping(ActivityThread.java:4952)
at android.app.ActivityThread.-wrap23(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.get(ArrayList.java:437)
at android.view.WindowManagerGlobal.setStoppedState(WindowManagerGlobal.java:649)
at android.app.Activity.performStop(Activity.java:7581)
at android.app.ActivityThread.handleSleeping(ActivityThread.java:4949)
... 8 more

@zr940326
Copy link

我也遇到了,不知道,有解决方案没有

@zr940326
Copy link

at android 8.0.0 or 8.0.1,it occur a crash of below:
java.lang.RuntimeException: Unable to stop activity {VideoPlayActivity}: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at android.app.ActivityThread.handleSleeping(ActivityThread.java:4952)
at android.app.ActivityThread.-wrap23(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.get(ArrayList.java:437)
at android.view.WindowManagerGlobal.setStoppedState(WindowManagerGlobal.java:649)
at android.app.Activity.performStop(Activity.java:7581)
at android.app.ActivityThread.handleSleeping(ActivityThread.java:4949)
... 8 more

兄弟,你最后有解决吗?

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

2 participants