java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{7a49b06 position=0 id=-1, oldPos=-1, pLpos:-1}

GitHub | yuruxuan | 3 months ago
  1. 0

    addData使用问题

    GitHub | 3 months ago | yuruxuan
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{7a49b06 position=0 id=-1, oldPos=-1, pLpos:-1}
  2. 0

    RecyclerView throwing IllegalArgumentException when EditText opened

    Stack Overflow | 1 year ago | Graeme
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
  3. 0

    Issue 82199 - android - RecyclerView - IllegalArgumentException - Called attach on a child which is not detached - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{41ce22c0 position=4 id=-1, oldPos=-1, pLpos:-1 no parent}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash when loadMore

    GitHub | 7 months ago | lgxDesign
    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{36ea4f63 position=7 id=-1, oldPos=-1, pLpos:-1 not recyclable(1)}
  6. 0

    问题

    GitHub | 3 months ago | wuzhaohui026
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true

  1. tone5992 2 times, last 7 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Called attach on a child which is not detached: ViewHolder{7a49b06 position=0 id=-1, oldPos=-1, pLpos:-1}

    at android.support.v7.widget.RecyclerView$5.attachViewToParent()
  2. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$5.attachViewToParent(RecyclerView.java:654)
    2. android.support.v7.widget.ChildHelper.attachViewToParent(ChildHelper.java:239)
    3. android.support.v7.widget.RecyclerView.addAnimatingView(RecyclerView.java:1107)
    4. android.support.v7.widget.RecyclerView.animateChange(RecyclerView.java:3270)
    5. android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3088)
    6. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2917)
    7. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)
    7 frames
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16653)
    2. android.view.ViewGroup.layout(ViewGroup.java:5438)
    2 frames
  4. Android Support v4
    SwipeRefreshLayout.onLayout
    1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)
    1 frame
  5. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:16653)
    2. android.view.ViewGroup.layout(ViewGroup.java:5438)
    3. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1080)
    4. android.view.View.layout(View.java:16653)
    5. android.view.ViewGroup.layout(ViewGroup.java:5438)
    6. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    7. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    8. android.view.View.layout(View.java:16653)
    9. android.view.ViewGroup.layout(ViewGroup.java:5438)
    10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    11. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    12. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    13. android.view.View.layout(View.java:16653)
    14. android.view.ViewGroup.layout(ViewGroup.java:5438)
    15. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    16. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    17. android.view.View.layout(View.java:16653)
    18. android.view.ViewGroup.layout(ViewGroup.java:5438)
    19. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
    20. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
    21. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
    22. android.view.View.layout(View.java:16653)
    23. android.view.ViewGroup.layout(ViewGroup.java:5438)
    24. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    25. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    25 frames
  6. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:16653)
    2. android.view.ViewGroup.layout(ViewGroup.java:5438)
    3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2198)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1958)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1134)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6045)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:672)
    9. android.view.Choreographer.doFrame(Choreographer.java:608)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:148)
    14. android.app.ActivityThread.main(ActivityThread.java:5438)
    14 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
    2 frames