java.lang.RuntimeException: Unable to start activity ComponentInfo{co5025.example.com.week10/co5025.example.com.week10.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatEditText cannot be cast to android.widget.Button


Solutions on the web

Solution icon of stackoverflow
Unable to start activity ComponentInfo{co5025.example.com.week10/co5025.example.com.week10.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatEditText cannot be cast to android.widget.Button

Solution icon of stackoverflow
via Stack Overflow by Muhammad Bilal
, 2 months ago
Unable to start activity ComponentInfo{com.example.user.alert_dialog/com.example.user.alert_dialog.MainActivity}: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.Button

Solution icon of github
via GitHub by xtj-9182
, 1 year ago
Unable to start activity ComponentInfo{ar.rulosoft.mimanganu/ar.rulosoft.mimanganu.MainActivity}: java.lang.ClassCastException: android.support.v7.preference.PreferenceScreen cannot be cast to android.preference.GenericInflater$Parent

Solution icon of stackoverflow
via Stack Overflow by madara09
, 6 months ago
Unable to start activity ComponentInfo{com.example.lightning.myapplication3/com.example.lightning.myapplication3.SetRouteActivity}: java.lang.ClassCastException: android.widget.SearchView cannot be cast to android.support.v7.widget.SearchView

Solution icon of github
via GitHub by xtj-9182
, 1 year ago
Unable to start activity ComponentInfo{ar.rulosoft.mimanganu/ar.rulosoft.mimanganu.MainActivity}: java.lang.ClassCastException: android.support.v7.preference.PreferenceScreen cannot be cast to android.preference.GenericInflater$Parent

Solution icon of stackoverflow
via Stack Overflow by shivi shah
, 8 months ago
Unable to start activity ComponentInfo{com.example.vicky.project/com.example.vicky.project.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.EditText

Solution icon of stackoverflow
via Stack Overflow by hamster
, 9 months ago
Unable to instantiate activity ComponentInfo{com.example.adi.fragment2/com.example.adi.fragment2.MainActivity}: java.lang.ClassCastException: com.example.adi.fragment2.MainActivity cannot be cast to android.app.Activity

Solution icon of github
via GitHub by mvarnagiris
, 9 months ago
Unable to start activity ComponentInfo{com.emoticast.tunemoji.android.debug/com.emoticast.tunemoji.feature.main.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.LinearLayoutManager$SavedState cannot be cast to com.beloo.widget.chipslayoutmanager.ParcelableContainer

Solution icon of github
Unable to start activity ComponentInfo{com.mattikettu.pinkiponki/com.mattikettu.pinkiponki.RegisterActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.app.Activity

Solution icon of github
via GitHub by TheWorstNL
, 1 year ago
Unable to start activity ComponentInfo{me.ccrama.redditslide.debug/me.ccrama.redditslide.Activities.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to me.ccrama.redditslide.SpoilerRobotoTextView

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{co5025.example.com.week10/co5025.example.com.week10.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatEditText cannot be cast to android.widget.Button
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
16 times, 9 months ago
6 times, 1 year ago
12 times, 1 year ago
109 more bugmates