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

GitHub | woniu0936 | 6 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

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

    GitHub | 6 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 | 11 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 | 5 months ago | yuruxuan
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0
  6. 0

    Could not find a method saveData(View)

    Google Groups | 6 months ago | Giuseppe Guarino
    java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

  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