Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by adroitandroid
, 1 year ago
The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by casolorz
, 10 months ago
The specified child already has a parent. You must call removeView() on the childs parent first.
via Stack Overflow by bailando bailando
, 1 year ago
The specified child already has a parent. You must call removeView() on the child's parent first.
via GitHub by lijunguan
, 1 year ago
The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by Zelmec
, 1 year ago
The specified child already has a parent. You must call removeView() on the child's parent first. So my question is: What am I doing wrong? Am I using data binding incorrectly? Is Kotlin just not playing well with data binding? Any help or feedback
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(ViewGroup.java:3382) at android.view.ViewGroup.addView(ViewGroup.java:3253) at android.view.ViewGroup.addView(ViewGroup.java:3198) at android.support.v7.widget.RecyclerView$5.addView(RecyclerView.java:611) at android.support.v7.widget.ChildHelper.addView(ChildHelper.java:107) at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:6728) at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6686) at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6674) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1404) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028) at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2625) at android.view.View.measure(View.java:15227) at android.widget.RelativeLayout.measureChild(RelativeLayout.java:602) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:415) at android.view.View.measure(View.java:15227) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135) at android.view.View.measure(View.java:15227) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820) at android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:391) at android.view.View.measure(View.java:15227) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at android.view.View.measure(View.java:15227) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1390) at android.widget.LinearLayout.measureVertical(LinearLayout.java:681) at android.widget.LinearLayout.onMeasure(LinearLayout.java:574) at android.view.View.measure(View.java:15227) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4820) at android.widget.FrameLayout.onMeasure(FrameLayout.java:310) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2189) at android.view.View.measure(View.java:15227) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1934) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1128) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1311) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1026) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4369) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) at android.view.Choreographer.doCallbacks(Choreographer.java:555) at android.view.Choreographer.doFrame(Choreographer.java:525) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4797) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:776) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:543) at dalvik.system.NativeStart.main(Native Method)