Android 报错:Resources$NotFoundException: String resource ID #0x19 bug
来源:互联网 发布:联通网络开发面试题 编辑:程序博客网 时间:2024/06/04 08:50
今天写程序时发现了一个错误,调用edit.setText()时如果传入的参数是int的话,会默认调用edit.setText(int resId)这个方法,但是你单纯想显示一个int,但是编译器却把这个int当做了一个地址来查询资源,当然是查询不到了,所以会报错。
解决方法:
1、将int转为String输入
2、在int后加”“转化为String
0 0
- Android 报错:Resources$NotFoundException: String resource ID #0x19 bug
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
- textView.setText() 的时候报错 android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0xc8报错解决
- android.content.res.Resources$NotFoundException: String resource ID #0x4 报找不到资源id情况
- 安卓中getString(R.string.x)报android.content.res.Resources$NotFoundException: String resource ID#0x7f070
- bug android.content.res.Resources$NotFoundException: String resource ID #0x0
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- android启动activity报android.content.res.Resources$NotFoundException: String resource ID #0x0
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误
- 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
- CreateWindowEx()自定义窗口句柄,消息处理
- Nginx 502错误触发条件与解决办法汇总
- CSharp调用默认浏览器打开网页的几种方法
- 特殊变量
- Ubuntu环境下搭建git服务器
- Android 报错:Resources$NotFoundException: String resource ID #0x19 bug
- Caesar加密算法
- 面向对象设计的六大原则简介
- 委托与事件
- java中的String类
- [dfs(深度优先搜索)]简单类题目 2016年蓝桥杯省赛题第三题——凑算式
- iOS中UINavigationController实现多级pop回退
- Android 将String转化为int
- Android中visibility属性VISIBLE、INVISIBLE、GONE的区别