Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
来源:互联网 发布:网络兼职诈骗新闻最新 编辑:程序博客网 时间:2024/05/16 13:54
如果遇到这个问题,首先考虑以下原因:
你是否在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
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x**
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
- Qt: 查询数据库与tableview很容易一起使用
- 类的基本函数学习
- elasticsearch之mapping types
- sed中关于pattern space和hold space的小实例一则(tac)
- Emmet(Zen coding)HTML代码使用技巧七则
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- vmware-linux虚拟机上网配置
- 观察者模式在项目中的应用
- Android修改LED指示灯
- 在Android Manifest中出现Use '$' instead of '.' for inner classes (or use only lowercase letters in pac
- warning:integer constant is too large for long type
- 详解SSJ(Spring3.x mvc + Spring3.x Core + JPA2.x)轻量级集成开发—第5章 剖析Spring3.x AOP特性02
- 探秘抽屉导航的前生今世
- Effective.C 读书笔记01