java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 11(offset:11).state:13

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.

  • GitHub comment 315#246124705
    via GitHub by muhezi
    ,
  • RecyclerView IndexOutOfBoundsException
    via Stack Overflow by jihoon kim
    ,
  • GitHub comment 198#216515357
    via GitHub by pepitoria
    ,
  • Crash on 2.1.3
    via GitHub by dalb8
    ,
    • java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 11(offset:11).state:13 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.onLayoutChildren(LinearLayoutManager.java:574) at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:2979) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2904) at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1472) at android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147) at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:294) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) at android.view.Choreographer.doCallbacks(Choreographer.java:574) at android.view.Choreographer.doFrame(Choreographer.java:543) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5094) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702) at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Stefan Braune
    Stefan Braune11 times, last one,
    Unknown visitor1 times, last one,
    24 more bugmates