AS开发中出现Error(二)——Java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or
来源:互联网 发布:skype聊天软件下载 编辑:程序博客网 时间:2024/06/16 20:49
Java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
原因:
1、调用findViewById的顺序是否在Activity中onCreate或Fragment中onCreatedView的setContentView方法之后
2、这里有提示R$id的问题,那你看看是不是引用了多个库,而有同名的layout布局
解决:在报错的对应的class中的布局layout名字重新命名
参考:http://www.th7.cn/Program/Android/201608/946598.shtml
阅读全文
0 0
- AS开发中出现Error(二)——Java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- NoSuchFieldError: No static field btn_press3 of type I in class Lcom/hyphenate/helpdesk/R$id; or its
- java.lang.NoSuchFieldError: no "I" field XXXXin class "Lxx/xx/xx/xx;" or its superclasses
- java.lang.NoSuchFieldError: No field title of type I
- java.lang.NoSuchFieldError: No field title of type
- No static field ll_time of type I in class L使用第三方类库R文件不编译
- java.lang.NoSuchFieldError: No static field
- java.lang.NoSuchFieldError:包.R$id.xxx
- android java.lang.NoSuchFieldError: R$id.xxx
- android java.lang.NoSuchFieldError: R$id.xxx
- android java.lang.NoSuchFieldError: R$id.xxx
- android java.lang.NoSuchFieldError: R$id.xxx
- java.lang.NoSuchFieldError:包.R$id.xxx
- android java.lang.NoSuchFieldError: R$id.xxx
- Android使用HttpClient时出现错误:java.lang.NoSuchFieldError: No static field INSTANCE
- Effective C++第三章-资源管理-2
- <NOIP> 21 . P1914 小书童——密码
- Mybatis配置文件报错“元素类型为 "configuration" 的内容必须匹配……”
- 注意测试spring项目
- 字符串反转的几种方式
- AS开发中出现Error(二)——Java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or
- 快速排序
- 移动页面开发小技巧
- VC++实现批量大容量快速插入SqlServer数据库
- iOS中TextView显示HTML文本
- Java汉字转成汉语拼音工具类
- jQuery四种事件绑定方式.bind(),.live(),.delegate(),on()的区别
- C++侦测类型转换性
- 17. Letter Combinations of a Phone Number