java.lang.RuntimeException: Unable to resume activity {com.example.manish.planetdelhi/com.example.manish.planetdelhi.MainActivity}: java.lang.ClassCastException: com.example.manish.planetdelhi.SubPlaceFragment cannot be cast to com.example.manish.planetdelhi.PlaceListFragment

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 Manish Gupta
, 1 year ago
Unable to resume activity {com.example.manish.planetdelhi/com.example.manish.planetdelhi.MainActivity}: java.lang.ClassCastException: com.example.manish.planetdelhi.SubPlaceFragment cannot be cast to com.example.manish.planetdelhi.PlaceListFragment
via GitHub by turl
, 2 years ago
Unable to resume activity {com.namelessdev.mpdroid/com.namelessdev.mpdroid.MainMenuActivity}: android.os.NetworkOnMainThreadException
via GitHub by Sereri
, 11 months ago
Unable to resume activity {com.ferg.awful/com.ferg.awful.UserCPActivity}: java.lang.NullPointerException
via GitHub by yvolk
, 2 years ago
Unable to resume activity {org.andstatus.app/org.andstatus.app.account.AccountSettingsActivity}: java.lang.NullPointerException
via GitHub by eileenfan
, 2 months ago
Unable to resume activity {com.github.pires.obd.reader/com.github.pires.obd.reader.activity.MainActivity}: java.lang.NullPointerException
via Stack Overflow by Unknown author, 2 years ago
Unable to resume activity {com.stenstudios.secondapp/com.stenstudios.secondapp.Menu}: java.lang.IllegalStateException
java.lang.RuntimeException: Unable to resume activity {com.example.manish.planetdelhi/com.example.manish.planetdelhi.MainActivity}: java.lang.ClassCastException: com.example.manish.planetdelhi.SubPlaceFragment cannot be cast to com.example.manish.planetdelhi.PlaceListFragment
at com.example.manish.planetdelhi.MainActivity.AddPlaceFragment(MainActivity.java:74)
at com.example.manish.planetdelhi.MainActivity.onStart(MainActivity.java:80)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1194)
at android.app.Activity.performStart(Activity.java:5258)
at android.app.Activity.performRestart(Activity.java:5314)
at android.app.Activity.performResume(Activity.java:5319)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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