xml修改后报错: java.lang.ClassCastException: android.widget.LinearLayout
来源:互联网 发布:linux 免费邮件服务器 编辑:程序博客网 时间:2024/04/28 03:38
06-24 01:40:01.692: E/AndroidRuntime(997): Caused by: java.lang.ClassCastException: android.widget.LinearLayout
修改了xml布局后,就报上面的错误,意思大概是xml上定义的标签类型不一致,导致类型转换错误
但是反复检查后,发现类型是对的
解决方法是:删除gen目录下的R.java这个文件。(注:删除之后系统会自动重新生成这个id文件)
0 0
- xml修改后报错: java.lang.ClassCastException: android.widget.LinearLayout
- java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout
- 转 Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams 错误
- java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
- java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.LinearLayout
- java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wid
- java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wid
- java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wi
- java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wid
- :java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wi
- java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wid
- android异常总结--java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast t
- 推荐网站博客
- Aspose.word保存PDF时进行授权访问设置
- combobox联动
- java 接口
- com.sun.management.OperatingSystemMXBean引入出错
- xml修改后报错: java.lang.ClassCastException: android.widget.LinearLayout
- Mobile Web前端开发系列: 动画系列(一)
- memcache 安装启动
- HDU 1754 I Hate It【线段树】
- 解决java.lang.RuntimeException: Parcel: unable to marshal value 问题
- 菜单
- UVA1153-Keep the Customer Satisfied(贪心+优先队列)
- Max Points on a Line
- PKU #1251/HDU #1301 Jungle Roads(Kruskal+并查集)