java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:3

GitHub | woniu0936 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:3

    GitHub | 5 months ago | woniu0936
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:3
  2. 0

    Added View has RecyclerView as parent but view is not a real child

    GitHub | 10 months ago | captain-miao
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0
  3. 0

    滑动到底崩溃

    GitHub | 1 year ago | wyy283
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    关于进入页面时快速上滑loadmore 出现崩溃

    GitHub | 4 months ago | yuruxuan
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0

  1. Larten 7 times, last 1 year ago
3 unregistered visitors

Root Cause Analysis

  1. java.lang.IllegalStateException

    Added View has RecyclerView as parent but view is not a real child. Unfiltered index:3

    at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt()
  2. Android v7
    RecyclerView$ViewFlinger.run
    1. android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:6720)
    2. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6686)
    3. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6674)
    4. android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1559)
    5. android.support.v7.widget.StaggeredGridLayoutManager.scrollBy(StaggeredGridLayoutManager.java:2060)
    6. android.support.v7.widget.StaggeredGridLayoutManager.scrollVerticallyBy(StaggeredGridLayoutManager.java:1980)
    7. android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4061)
    7 frames
  3. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:603)
    3. android.view.Choreographer.doFrame(Choreographer.java:571)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786)
    5. android.os.Handler.handleCallback(Handler.java:815)
    6. android.os.Handler.dispatchMessage(Handler.java:104)
    7. android.os.Looper.loop(Looper.java:192)
    8. android.app.ActivityThread.main(ActivityThread.java:5784)
    8 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  5. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
    2 frames