java.lang.ArrayIndexOutOfBoundsException: length=24; index=-1


Solutions on the web

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

Solution icon of github
length=1; index=-1

Solution icon of stackoverflow
length=1; index=-1

Solution icon of github
via GitHub by tumb1er
, 1 year ago
index=-1 length=1

Solution icon of web
length=1; index=-1

Solution icon of github
via GitHub by a7891749
, 9 months ago
length=12; index=-1

Solution icon of github
via GitHub by feiyangwei
, 1 year ago
length=12; index=-1

Solution icon of github
via GitHub by Triodan
, 1 month ago
length=0; index=-1

Solution icon of github
length=0; index=-1

Solution icon of github
via GitHub by ffolkes
, 6 months ago
length=12; index=-1

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, 2 months ago
3 times, 4 months ago
2 times, 8 months ago
Once, 9 months ago
2 times, 10 months ago
42 more bugmates