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

antonioleiva.com | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    RecyclerView in Android: The basics - Antonio Leiva

    antonioleiva.com | 5 months ago
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 0(offset:-1).state:2
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    GitHub comment 134#60248856

    GitHub | 2 years ago | jacek-marchwicki
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 57(offset:57).state:95

  1. ajinkya_w 4 times, last 5 months ago
  2. Stefan Braune 1 times, last 9 months ago
  3. Agócs Tamás 2 times, last 1 year ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

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

    at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition()
  2. Android v7
    RecyclerView$Recycler.getViewForPosition
    1. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3300)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3258)
    2 frames
  3. wappi.AfricanFashion
    BaseLayoutManager.onLayoutChildren
    1. wappi.AfricanFashion.BaseLayoutManager$RenderState.next(BaseLayoutManager.java:1330)
    2. wappi.AfricanFashion.GridLayoutManager.fill(GridLayoutManager.java:55)
    3. wappi.AfricanFashion.BaseLayoutManager.scrollBy(BaseLayoutManager.java:840)
    4. wappi.AfricanFashion.BaseLayoutManager.fixLayoutEndGap(BaseLayoutManager.java:616)
    5. wappi.AfricanFashion.BaseLayoutManager.onLayoutChildren(BaseLayoutManager.java:544)
    5 frames