java.lang.IllegalArgumentException: parameter must be a descendant of this view

Stack Overflow | Mitchell | 7 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

    Crash when expanding

    GitHub | 2 months ago | imachadoglobant
    java.lang.IllegalArgumentException: parameter must be a descendant of this view

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      parameter must be a descendant of this view

      at android.view.ViewGroup.offsetRectBetweenParentAndChild()
    2. Android Platform
      ViewGroup.layout
      1. android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:5334)
      2. android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:5263)
      3. android.widget.ScrollView.isWithinDeltaOfScreen(ScrollView.java:1161)
      4. android.widget.ScrollView.onSizeChanged(ScrollView.java:1566)
      5. android.view.View.sizeChange(View.java:16748)
      6. android.view.View.setFrame(View.java:16710)
      7. android.view.View.layout(View.java:16627)
      8. android.view.ViewGroup.layout(ViewGroup.java:5437)
      9. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
      10. android.view.View.layout(View.java:16630)
      11. android.view.ViewGroup.layout(ViewGroup.java:5437)
      11 frames
    3. android.support.design
      CoordinatorLayout.onLayout
      1. android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1092)
      2. android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:802)
      3. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:816)
      3 frames
    4. Android Platform
      FrameLayout.onLayout
      1. android.view.View.layout(View.java:16630)
      2. android.view.ViewGroup.layout(ViewGroup.java:5437)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
      5. android.view.View.layout(View.java:16630)
      6. android.view.ViewGroup.layout(ViewGroup.java:5437)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
      10. android.view.View.layout(View.java:16630)
      11. android.view.ViewGroup.layout(ViewGroup.java:5437)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
      14. android.view.View.layout(View.java:16630)
      15. android.view.ViewGroup.layout(ViewGroup.java:5437)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
      19. android.view.View.layout(View.java:16630)
      20. android.view.ViewGroup.layout(ViewGroup.java:5437)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
      22 frames
    5. Android
      PhoneWindow$DecorView.onLayout
      1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:16630)
      2. android.view.ViewGroup.layout(ViewGroup.java:5437)
      3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      9. android.view.Choreographer.doFrame(Choreographer.java:606)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      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:5417)
      14 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames