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

Stack Overflow | sgrumo | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Fragments : unable to start activity Component Info

    Stack Overflow | 9 months ago | sgrumo
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sgrumo.sunshineonyourmind/com.example.sgrumo.sunshineonyourmind.MainActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  2. 0

    Android app crashes while starting new activity

    Stack Overflow | 5 months ago | quant
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.martin.currencyconverter/com.example.martin.currencyconverter.fromdkk}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
  3. 0

    请问为什么加载contentview就出现错误了

    GitHub | 1 month ago | zzz0906
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.goldfish.internetconnect/com.goldfish.internetconnect.PullToRefreshRecycleActivity}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.handmark.pulltorefresh.library.extras.recyclerview.PullToRefreshRecyclerView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.RuntimeException: Parcel android.os.Parcel: Unmarshalling unknown type code

    Stack Overflow | 10 months ago | Farbod Salamat-Zadeh
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.satsuware.flashcards/com.satsumasoftware.flashcards.ui.FlashCardActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@d2219e4: Unmarshalling unknown type code 6815860 at offset 200
  6. 0

    Crash on screen rotation with SelectionController.

    GitHub | 2 years ago | aveuiller
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.dkharrat.nexusdialog.sample/com.github.dkharrat.nexusdialog.sample.SimpleExample}: java.lang.ClassCastException: android.widget.TextView$SavedState cannot be cast to android.widget.Spinner$SavedState

  1. rp 1 times, last 4 months ago
  2. dealloc 7 times, last 5 months ago
  3. Alexandru Popa 4 times, last 5 months ago
  4. Stefan Braune 18 times, last 9 months ago
  5. ben.slama.jihed 37 times, last 11 months ago
12 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.RuntimeException

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

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    1 frame