java.lang.ArrayIndexOutOfBoundsException

length=24; index=-1


Solutions on the web5743

Solution icon of github
via GitHub by liuguoquan727
, 7 months ago
length=24; index=-1

Solution icon of github
length=24; index=24

Solution icon of github
length=24; index=24

Solution icon of googlegroups
via Google Groups by AceEX, 1 month ago
length=24; index=24

Solution icon of stackoverflow
length=24; index=24

Solution icon of stackoverflow
length=24; index=691

Solution icon of stackoverflow
length=24; index=2231

Solution icon of web
via xamarin.com by Unknown author, 1 year ago
length=24; index=150

Solution icon of github
length=8; index=24

Solution icon of stackoverflow
length=24; index=230

Stack trace

  • java.lang.ArrayIndexOutOfBoundsException: length=24; index=-1 at java.util.ArrayList.get(ArrayList.java:310) at com.chad.library.adapter.base.BaseQuickAdapter.getItem(BaseQuickAdapter.java:392) at com.chad.library.adapter.base.BaseQuickAdapter.getExpandableItem(BaseQuickAdapter.java:1324) at com.chad.library.adapter.base.BaseQuickAdapter.collapse(BaseQuickAdapter.java:1272) at com.chad.library.adapter.base.BaseQuickAdapter.collapse(BaseQuickAdapter.java:1307) at com.chad.baserecyclerviewadapterhelper.adapter.ExpandableItemAdapter$2.onClick(ExpandableItemAdapter.java:76) at android.view.View.performClick(View.java:5204) at android.view.View$PerformClick.run(View.java:21153) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

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

Once, 1 week ago
3 times, 2 months ago
2 times, 6 months ago
Once, 7 months ago
2 times, 8 months ago
41 more bugmates