java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.LinearLayout at com.example.anandzoom.draganddrop.MainActivity.onDrag(MainActivity.java:70) at android.view.View.dispatchDragEvent(View.java:19702) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1518) at android.view.ViewRootImpl.handleDragEvent(ViewRootImpl.java:5290)
    No Bugmate found.