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

前端 未结 5 1002
醉梦人生
醉梦人生 2020-12-30 13:08
12-01 00:36:28.058: E/AndroidRuntime(5062): Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
5条回答
  •  旧时难觅i
    2020-12-30 13:25

    If there is a cleanup issue then it can throw any casting error.I got this:

    Caused by: java.lang.ClassCastException: android.widget.EditText cannot be cast to android.widget.LinearLayout
    

    In eclipse, Just go to Project > Clean & Select your project to clean it.

提交回复
热议问题