java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView

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 GitHub by GoogleCodeExporter
, 1 year ago
android.widget.LinearLayout cannot be cast to android.widget.TextView
via GitHub by GoogleCodeExporter
, 1 year ago
android.widget.LinearLayout
via GitHub by GoogleCodeExporter
, 1 year ago
android.widget.LinearLayout
via GitHub by GoogleCodeExporter
, 1 year ago
android.widget.LinearLayout
java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
at org.jiaxxhaha.wordsearch.view.WordListActivity.onItemClick(WordListActivity.java:234)
at android.widget.AdapterView.performItemClick(AdapterView.java:292)
at android.widget.AbsListView.performItemClick(AbsListView.java:1066)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:2522)
at android.widget.AbsListView$1.run(AbsListView.java:3189)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4456)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.