ava.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 20(offset:20).state:21

google.com | 3 weeks ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. ava.lang.IndexOutOfBoundsException

    Inconsistency detected. Invalid item position 20(offset:20).state:21

    at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition()
  2. Android v7
    RecyclerView$ViewFlinger.run
    1. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3300)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3258)
    3. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1803)
    4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1302)
    5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1265)
    6. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1093)
    7. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:956)
    8. android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2715)
    8 frames
  3. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:894)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:696)
    3. android.view.Choreographer.doFrame(Choreographer.java:628)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:880)
    5. android.os.Handler.handleCallback(Handler.java:815)
    6. android.os.Handler.dispatchMessage(Handler.java:104)
    7. android.os.Looper.loop(Looper.java:207)
    8. android.app.ActivityThread.main(ActivityThread.java:5776)
    8 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  5. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    1 frame