Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
来源:互联网 发布:周杰伦皮影戏知乎 编辑:程序博客网 时间:2024/05/19 04:03
如果遇到这个问题,首先考虑以下原因:
你是否在setText()方法中设置了一个int型变量,比如setText(10)。
这样Android系统就会主动去资源文件当中寻找, 但是它不是一个资源文件ID, 所以就会报出这个bug。
解决办法:将int型业务数据,转换成String类型即可,比如setText(10+“”); 0 0
- 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
- android启动activity报android.content.res.Resources$NotFoundException: String resource ID #0x0
- textView.setText() 的时候报错 android.content.res.Resources$NotFoundException: String resource ID #0x0
- ccs平台 28335mcu 关于变量重复定义的解决方案
- Hdu 1059 Dividing(dp)
- POJ2406简单KMP
- SQL Server用户登录失败
- 树形列表成员- DevExpress.XtraTreeList.TreeList
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- SpringMVC 学习笔记(六) 数据绑定和JSR校验
- 套接字 中 shutdown与close区别
- poj2418map或者字典树
- Android混淆打包
- 中兴阅读:你的移动阅读解决专家,助纸媒们一臂之力
- Jquery dialog 处理textarea
- 协议栈----资料收集整理消化吸收---阿冬专栏
- MFC 将文本框内容转为十六进制的字符串