Android学习笔记--android.content.res.Resources$NotFoundException: String resource ID #0x0
2014-11-13 19:47
337 查看
错误提示:
android.content.res.Resources$NotFoundException: String resource ID #0x0
错误原因:
在setText()中使用了int型的参数
错误解决方法:
setText()把整型转换成string类型,方法如下:
1.String s=String.valueOf(i);
2.String s=Integer.toString(i);
3.Striing s=""+i;
android.content.res.Resources$NotFoundException: String resource ID #0x0
错误原因:
在setText()中使用了int型的参数
错误解决方法:
setText()把整型转换成string类型,方法如下:
1.String s=String.valueOf(i);
2.String s=Integer.toString(i);
3.Striing s=""+i;
相关文章推荐
- android.content.res.Resources$NotFoundException 异常处理
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x6错误的解决办法
- android.content.res.Resources$NotFoundException: String resource ID #0x7f050016
- android.content.res.Resources$NotFoundException: Resource ID解决办法
- android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
- android.content.res.Resources$NotFoundException异常处理
- 解决android.content.res.Resources NotFoundException的一个方法
- 解决android.content.res.Resources NotFoundException的一个方法
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0
- android.content.res.Resources$NotFoundException: String resource ID #0x8错误
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedVa
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException:String resource ID #0x86
- 关于Android中android.content.res.Resources$NotFoundException: String resource ID #0x9这类问题的解决
- android.content.res.Resources$NotFoundException
- android.content.res.Resources$NotFoundException解决方案
- android.content.res.Resources$NotFoundException: String resource ID #0x6d
- android.content.res.Resources$NotFoundException错误的解决办法
- android.content.res.Resources NotFoundException