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 Ravindra Kushwaha
, 1 year ago
com.tv.practise.adapter.RecycleDataAdapter$SimpleImageWithText cannot be cast to com.tv.practise.adapter.RecycleDataAdapter$SimpleText
java.lang.ClassCastException: com.tv.practise.adapter.RecycleDataAdapter$SimpleImageWithText cannot be cast to com.tv.practise.adapter.RecycleDataAdapter$SimpleText	at com.tv.practise.adapter.RecycleDataAdapter.onBindViewHolder(RecycleDataAdapter.java:101)	at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471)	at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5504)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4741)	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)	at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994)	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390)	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)	at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2625)	at android.view.View.measure(View.java:18804)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)	at android.view.View.measure(View.java:18804)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at android.view.View.measure(View.java:18804)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:748)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:630)	at android.view.View.measure(View.java:18804)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)	at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2643)	at android.view.View.measure(View.java:18804)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2112)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1228)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1464)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1119)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6060)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)	at android.view.Choreographer.doCallbacks(Choreographer.java:670)	at android.view.Choreographer.doFrame(Choreographer.java:606)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)	at android.os.Handler.handleCallback(Handler.java:746)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5443)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)