java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appex.tryproject/com.appex.tryproject.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

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 Stack Overflow by Anuraag Baishya
, 2 years ago
Unable to start activity ComponentInfo{com.appex.tryproject/com.appex.tryproject.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
via howtobuildsoftware.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.appex.tryproject/com.appex.tryproject.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by Buddy
, 2 years ago
Unable to start activity ComponentInfo{com.example.app/com.example.app.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by GoldenEarring
, 2 years ago
Unable to start activity ComponentInfo{com.teamjava.theultimatetipconverter/com.teamjava.theultimatetipconverter.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by wheatfairies
, 2 years ago
Unable to start activity ComponentInfo{com.example.app/com.example.app.DisplayMessageActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by JRE.exe
, 2 years ago
Unable to start activity ComponentInfo{com.example.manage.airpush.com/com.example.manage.airpush.com.Console}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appex.tryproject/com.appex.tryproject.MainActivity}: 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:3562)
at android.view.ViewGroup.addView(ViewGroup.java:3415)
at android.view.ViewGroup.addView(ViewGroup.java:3391)
at com.appex.tryproject.MainActivity.onCreate(MainActivity.java:63)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

Users with the same issue

2 times, 10 months ago
6 times, 11 months ago
5 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
18 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.