java.lang.IndexOutOfBoundsException

tip

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    • java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 20(offset:20).state:21 at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4659) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353) at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1180) at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1031) at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1529) at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2486)

    Users with the same issue

    Indri Yunita
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Aria Pahlavan
    1 times, last one,
    Stefan Braune
    6 times, last one,
    23 more bugmates