java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.LinearLayout

Stack Overflow | Anand Kumar | 2 months ago
  1. 0

    Shows ClassCastException while performing drag and drop in android

    Stack Overflow | 2 months ago | Anand Kumar
    java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.LinearLayout
  2. 0

    Why does my app stop working when I switch the place of elements?

    Stack Overflow | 4 months ago | MostafaUTD
    java.lang.RuntimeException: 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
  3. 0

    Passing data RecyclerView data to another activity on click

    Stack Overflow | 1 year ago | Cari95
    java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.os.Parcelable
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    My second app beside hello world crashes with this logcat

    Stack Overflow | 11 months ago | zhyar wahab
    java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.ImageView
  6. 0

    Snackbar Inflation Invalid Cast Exception

    GitHub | 4 months ago | kellenlask
    java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button

    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.AppCompatTextView cannot be cast to android.widget.LinearLayout

      at com.example.anandzoom.draganddrop.MainActivity.onDrag()
    2. com.example.anandzoom
      MainActivity.onDrag
      1. com.example.anandzoom.draganddrop.MainActivity.onDrag(MainActivity.java:70)
      1 frame
    3. Android Platform
      ViewRootImpl.handleDragEvent
      1. android.view.View.dispatchDragEvent(View.java:19702)
      2. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      3. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      4. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      5. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      6. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      7. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      8. android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518)
      9. android.view.ViewRootImpl.handleDragEvent(ViewRootImpl.java:5290)
      9 frames