Day3 照抄文章出错

来源:互联网 发布:掷茭杯的算法 编辑:程序博客网 时间:2024/06/16 03:28

今天看郭霖的第一行代码 学到了第三章listview 照着书敲代码的时候抄错代码 导致出现arrayadapter requires the resource id to be a textview错误 百度了好几种错误解决办法 万万没想到是viewgroup抄成了viewparent 导致导包导入错误 get view方法无法调用 调试了四个小时 最后找到书中源码用android stadio的代码对比功能才发现问题 浪费了好多时间

arrayadapter requires the resource id to be a textview

arrayadapter requires the resource id to be a textview

arrayadapter requires the resource id to be a textview

arrayadapter requires the resource id to be a textview

arrayadapter requires the resource id to be a textview

0 0
原创粉丝点击