java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

GitHub | adroitandroid | 5 months ago
  1. 0

    GitHub comment 102#229501590

    GitHub | 5 months ago | adroitandroid
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  2. 0

    CameraView: IllegalStateException resuming on devices with camera disabled

    GitHub | 2 years ago | kirisetsz
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  3. 0

    Potential IllegalStateException

    GitHub | 4 years ago | Gryzor
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash in ConversationsActivity

    GitHub | 2 years ago | danikula
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  6. 0

    MapView внутри Fragment

    GitHub | 4 years ago | kolipass
    java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

  1. filpgame 1 times, last 2 months ago
  2. Indri Yunita 6 times, last 1 week ago
  3. kuldeep 5 times, last 3 months ago
  4. harsha 1 times, last 4 months ago
  5. mrokay97 14 times, last 4 months ago
4 more registered users
11 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.IllegalStateException

    The specified child already has a parent. You must call removeView() on the child's parent first.

    at android.view.ViewGroup.addViewInner()
  2. Android Platform
    ViewGroup.addView
    1. android.view.ViewGroup.addViewInner(ViewGroup.java:3382)
    2. android.view.ViewGroup.addView(ViewGroup.java:3253)
    3. android.view.ViewGroup.addView(ViewGroup.java:3198)
    3 frames
  3. Android v7
    RecyclerView.onMeasure
    1. android.support.v7.widget.RecyclerView$5.addView(RecyclerView.java:611)
    2. android.support.v7.widget.ChildHelper.addView(ChildHelper.java:107)
    3. android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:6728)
    4. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6686)
    5. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6674)
    6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1404)
    7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
    8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
    10. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2625)
    10 frames
  4. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:15227)
    2. android.widget.RelativeLayout.measureChild(RelativeLayout.java:602)
    3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:415)
    4. android.view.View.measure(View.java:15227)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    6 frames
  5. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  6. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:15227)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820)
    2 frames
  7. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:391)
    1 frame
  8. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:15227)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    4. android.view.View.measure(View.java:15227)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1390)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:681)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
    9. android.view.View.measure(View.java:15227)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    11 frames
  9. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2189)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:15227)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1934)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1128)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1311)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1026)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4369)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:555)
    9. android.view.Choreographer.doFrame(Choreographer.java:525)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
    11. android.os.Handler.handleCallback(Handler.java:615)
    12. android.os.Handler.dispatchMessage(Handler.java:92)
    13. android.os.Looper.loop(Looper.java:137)
    14. android.app.ActivityThread.main(ActivityThread.java:4797)
    14 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:776)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:543)
    2 frames
  13. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame