java.lang.ClassCastException

android.widget.LinearLayout cannot be cast to android.widget.TextView

Solutions on the web19130

  • android.widget.LinearLayout cannot be cast to android.widget.TextView
  • android.widget.LinearLayout cannot be cast to android.widget.TextView
  • via Stack Overflow by honeybee
    , 1 year ago
    android.widget.LinearLayout cannot be cast to android.widget.TextView
  • Stack trace

    • 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) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554) at dalvik.system.NativeStart.main(Native Method)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.