android.content.res.Resources$NotFoundException: String resource ID #0xe错误处理
来源:互联网 发布:如何申请淘宝网开店 编辑:程序博客网 时间:2024/06/08 16:03
在开发中遇到了这个错误 android.content.res.Resources$NotFoundException: String resource ID #0xe at android.content.res.Resources.getText(Resources.java:244) at android.widget.TextView.setText(TextView.java:3888)跟进去找了TextView.setText(int resid);这个方法,才发现如果直接给这个方法传入个int 类型的参数的话会调用这个方法不会去调用我们期望的那个CharSequence参数的方法,传入int 的话会去资源文件中找和这个resid对应的资源文件,肯定是没有的 所以就会报这个错误。
0 0
- android.content.res.Resources$NotFoundException: String resource ID #0xe错误处理
- 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
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x7f050016
- android.content.res.Resources$NotFoundException:String resource ID #0x86
- android.content.res.Resources$NotFoundException:String resource ID #0x446
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x42
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x3
- matlab混合编程入门教程
- 《构建之法》第十章 典型用户和场景
- 关于singleInstance模式下activity切换动画问题
- **Access restriction: The type 'WebServlet' is not API (……)**
- 内部类,final----java内部类基础,为GUI打基础
- android.content.res.Resources$NotFoundException: String resource ID #0xe错误处理
- Android学习中的一些记录
- Struts2 格式化日期、时间和数字
- 模板测试
- 反射生成java类
- OOP----java面向对象理解
- POJ 3276 Face The Right Way (开关问题的优化_好题)
- 黑马程序员——阿龙的学习历程——Java初见
- getRequestDispatcher 和sendRedirect区别