java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:-1).state:2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via GitHub by h6ah4i

You have to provide valid identical number for each child items.

Solutions on the web

via antonioleiva.com by Unknown author, 9 months ago
Inconsistency detected. Invalid item position 0(offset:-1).state:2
via antonioleiva.com by Unknown author, 1 year ago
Inconsistency detected. Invalid item position 0(offset:-1).state:2
via GitHub by nicelyjust
, 1 year ago
Inconsistency detected. Invalid item position 7(offset:7).state:51
via GitHub by lololiu
, 1 year ago
Inconsistency detected. Invalid item position 20(offset:20).state:21
via sourceforge.net by Unknown author, 1 year ago
Inconsistency detected. Invalid item position {NUMBER1}(offset:-1).state:{NUMBER2(>NUMBER1)}
via blogspot.com by Unknown author, 1 year ago
Inconsistency detected. Invalid item position 0(offset:20).state:20
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:-1).state:2
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3300)
at wappi.AfricanFashion.BaseLayoutManager$RenderState.next(BaseLayoutManager.java:1330)
at wappi.AfricanFashion.GridLayoutManager.fill(GridLayoutManager.java:55)
at wappi.AfricanFashion.BaseLayoutManager.scrollBy(BaseLayoutManager.java:840)
at wappi.AfricanFashion.BaseLayoutManager.fixLayoutEndGap(BaseLayoutManager.java:616)
at wappi.AfricanFashion.BaseLayoutManager.onLayoutChildren(BaseLayoutManager.java:544)

Users with the same issue

10 times, 7 months ago
2 times, 1 year ago
4 times, 1 year ago
6 times, 1 year ago
7 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.