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

  1. 0

    Spinner: AppCompatSpinner cannot be cast to com.example.....MySpinner (Android)

    Stack Overflow | 5 months ago | Ilija Rushkovski
    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
  2. 0

    ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawableWithShadow

    Stack Overflow | 1 year ago | ez4nick
    java.lang.ClassCastException: android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawableWithShadow
  3. 0

    android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawableWithShadow

    Stack Overflow | 2 years ago | D4ddy-LiLd4rk
    java.lang.RuntimeException: 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    AppCompatButton cannot be cast to android.view.ViewGroup

    Stack Overflow | 11 months ago | Rich C
    java.lang.ClassCastException: android.support.v7.widget.AppCompatButton cannot be cast to android.view.ViewGroup
  6. 0

    ClassCastException : android.support.v7.widget.ShareActionProvider

    Stack Overflow | 3 years ago | Sun
    java.lang.ClassCastException: android.support.v7.widget.ShareActionProvider cannot be cast to android.view.ActionProvider

    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.ClassCastException

      android.support.v7.widget.AppCompatSpinner cannot be cast to com.example.ilija.festivalapp_makedox.MySpinner

      at com.example.ilija.festivalapp_makedox.CustomSpinner.onCreate()
    2. com.example.ilija
      CustomSpinner.onCreate
      1. com.example.ilija.festivalapp_makedox.CustomSpinner.onCreate(CustomSpinner.java:56)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:5312)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2552)
      3 frames