Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
来源:互联网 发布:c 定义数组长度 编辑:程序博客网 时间:2024/06/06 03:30
如果遇到这个问题,首先考虑以下原因:
你是否在setText()方法中设置了一个int型变量,比如setText(10)。
这样Android系统就会主动去资源文件当中寻找, 但是它不是一个资源文件ID, 所以就会报出这个bug。
解决办法:将int型业务数据,转换成String类型即可,比如setText(10+“”);
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- # android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x**
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
- ListView相关
- hdu 1003.Max Sum
- JavaScript在IE和Firefox(火狐)的不兼容问题解决方法小结
- 使用表函数查找某节点的所有子节点
- contentSize、contentInset和contentOffset区别
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- SQL 语言基础篇
- ExtJS HTMLEditor扩展
- Open Flash Chart图表的JSON格式基本属性详解
- Ubuntu下安装jdk1.5和jdk1.6并相互换
- Java中serialVersionUID的解释
- Open Flash Chart极简单入门教程 英文翻译
- 用hsql管理工具连接liferay自带的Hsql数据库
- map应用实例二