Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
来源:互联网 发布:淘宝买虚拟产品 编辑:程序博客网 时间:2024/06/05 23:17
对于这个错误,请务必首先考虑以下原因:
你是否在setText()方法中设置了一个整型变量,比如setText(25)。
这样Android系统就会主动去资源文件当中寻找R.id为25的资源, 但是它不是一个资源文件ID, 所以就会报这个错误。
解决办法:将整型业务数据,转换成String类型即可,比如setText(25+“”);
1 0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
- 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 #0x**
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x3
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x1
- Caused by: android.content.res.Resources$NotFoundException: String array resource
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0
- Caused by: Android.content.res.Resources$NotFoundException: Resource ID #0x7f0c0001
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f解析
- android.content.res.Resources$NotFoundException: String resource ID #0x6d
- android.content.res.Resources$NotFoundException:String resource ID #0x86
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- java 字符编码方式
- 单页面应用在REST调用下的登录模块的设计与实现
- 二叉树的建立 插入 删除
- exists与not exists的概念与用法
- seL4 内核服务、对象以及基本能力访问和控制
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
- nova 10.15会议纪要
- 【LeetCode】 Happy Number 解题报告
- C#类和接口、虚方法和抽象方法及值类型和引用类型的区别
- Interleaving String——leetcode string操作说明
- [unity3d]通过C#脚本操作游戏对象
- MongoDB的文档、集合和数据库
- 杭电1028
- ServletContext的应用