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

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 9 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

    Android - Change LinearLayout visibility automatically after radio button is checked

    Stack Overflow | 5 years ago | Hend
    java.lang.ClassCastException: android.widget.LinearLayout
  3. 0

    Running multiple applications on a shared process with a shared project library

    Stack Overflow | 5 years ago | Angelo
    java.lang.ClassCastException: xper.common.CommonView cannot be cast to xper.common.CommonView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Application doesn't run due to ClassCastException

    Stack Overflow | 4 years ago | Elson Tan
    java.lang.ClassCastException: android.widget.LinearLayout
  6. 0

    Volley POST not working ClassCastException

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: com.example.piyu004.volleycommunication.MainActivity cannot be cast to android.app.Activity at android.app.Instrumentation.newActivity(Instrumentation.java:1061)

    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