Androidannotation 报错:cannot be resolved or is not a field
来源:互联网 发布:excel找出a列重复数据 编辑:程序博客网 时间:2024/05/17 03:06
我今天终于解决这个问题, 项目应用了androidannotation,以注解方式编写代码,很快很顺畅。。。。。
写着写着,突然报了:cannot be resolved or is not a field 错误。。。。
擦,各种build,各种clean,各种关闭eclipse 重启eclipse 重启电脑N次,各种谷歌问题的解决方法,
擦,这一折腾,浪费了哥两个多小时了。。。。。。重新编写java测试文件,发现androidannotation是正常的,可以测试用,那就说明不是androidannotation的问题,是代码问题了,又仔细查找一番。
点击错误,进入annotation生成的类里面,看到有类似的代码:
order_no = ((TextView) hasViews.findViewById(id.order_no));对: id.xxxx 这个id理论上应该是R.id的意思是吧,然后我点击这个id,跳回到我编写的代码中,擦,原来我定义了一个 String id 的字段。。。。
注释掉后。。。。OK了。。。。。
擦。。。。。
0 0
- Androidannotation 报错:cannot be resolved or is not a field
- 报出现“"cannot be resolved or is not a field",
- Android工程中加入图片,报错cannot be resolved or is not a field
- FLAG_NEEDS_MENU_KEY cannot be resolved or is not a field 报错,程序无法运行
- Android工程中加入图片,报错cannot be resolved or is not a field
- R.xml.preference报错:preference cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- layout cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field
- (Layout) cannot be resolved or is not a field 错误
- main cannot be resolved or is not a field
- button1 cannot be resolved or is not a field
- "cannot be resolved or is not a field"问题解决
- main cannot be resolved or is not a field错误
- R.xxx cannot be resolved or is not a field
- uzip命令详解
- hdu 2437 Jerboas(bfs,dfs)
- socket基础api
- Cisco主要产品介绍(路由器、交换机)
- sed 批量替换字符串
- Androidannotation 报错:cannot be resolved or is not a field
- 思科交换机指示灯详解
- 浅谈多线程入门基础
- NYOJ_65 另一种阶乘问题
- RIP基础理论
- OSPF基础理论
- 通过SeekBar对ImageView进行缩放,旋转
- 集成百度地图的时候的常见错误及其处理方法
- 文章标题