java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ilija.festivalapp_makedox/com.example.ilija.festivalapp_makedox.CustomSpinner}: java.lang.ClassCastException: android.support.v7.widget.AppCompatSpinner cannot be cast to com.example.ilija.festivalapp_makedox.MySpinner

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 Ilija Rushkovski
, 1 year ago
Unable to start activity ComponentInfo{com.example.ilija.festivalapp_makedox/com.example.ilija.festivalapp_makedox.CustomSpinner}: java.lang.ClassCastException: android.support.v7.widget.AppCompatSpinner cannot be cast to com.example.ilija.festivalapp_makedox.MySpinner
via Stack Overflow by D4ddy-LiLd4rk
, 1 year ago
Unable to start activity ComponentInfo{com.brobox.materialcolorpalette/com.brobox.materialcolorpalette.MainActivity}: java.lang.ClassCastException: android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawableWithShadow
via Stack Overflow by MostafaUTD
, 1 year ago
Unable to start activity ComponentInfo{com.example.dysaniazzz.testdemo/com.example.dysaniazzz.testdemo.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button
via GitHub by rivaldi8
, 2 years ago
Unable to start activity ComponentInfo{org.gnucash.android.devel/org.gnucash.android.ui.settings.SettingsActivity}: java.lang.ClassCastException: org.gnucash.android.ui.settings.SettingsActivity cannot be cast to android.support.v7.app.AppCompatActivity
via GitHub by gyb3320
, 7 months ago
Unable to start activity ComponentInfo{com.yobn.yobnsample/com.imnjh.imagepicker.activity.PhotoPickerActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.AppCompatSpinner
via GitHub by stepsame
, 7 months ago
Unable to start activity ComponentInfo{com.imnjh.imagepickersample/com.imnjh.imagepicker.activity.PhotoPickerActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.AppCompatSpinner
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ilija.festivalapp_makedox/com.example.ilija.festivalapp_makedox.CustomSpinner}: java.lang.ClassCastException: android.support.v7.widget.AppCompatSpinner cannot be cast to com.example.ilija.festivalapp_makedox.MySpinner
at com.example.ilija.festivalapp_makedox.CustomSpinner.onCreate(CustomSpinner.java:56)
at android.app.Activity.performCreate(Activity.java:5312)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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