android.content.res.Resources$NotFoundException: String resource ID
2017-03-20 15:47
423 查看
记录一个比较容易出错的地方。setText有可能是set你在本地的资源文件string.xml文件。所以tv.settext(int)不会报错的.这里就是初始化实力类的时候,int类型的数据传递过来直接settext了。不报错,debug下就可以看到,报错了android.content.res.Resources$NotFoundException: String resource ID。比较简单,做下记录
相关文章推荐
- Android报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 找不到资源文件ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID Fatal Exception in Main
- android初学之android.content.res.Resources$NotFoundException: String resource ID #0x3e8异常
- 异常记录之android.content.res.Resources$NotFoundException: String resource ID
- Android 的坑一 :android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到资源文件ID #0x0
- Android报android.content.res.Resources$NotFoundException: String resource ID xxx 错误
- android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到资源文件ID #0x0
- 异常:android.content.res.Resources$NotFoundException:String resource ID #0x86的问题
- android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到资源文件ID #0x0
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- android:android.content.res.Resources$NotFoundException: String resource ID #..
- android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到资源文件ID #0x0
- android.content.res.Resources$NotFoundException:String resource ID #xxxx
- 【已解决】android.content.res.Resources$NotFoundException: String resource ID
- android.content.res.Resources$NotFoundException: String resource ID XXXX
- android:android.content.res.Resources$NotFoundException: String resource ID #..
- android.content.res.Resources$NotFoundException: String resource ID异常总结
- android.content.res.Resources$NotFoundException: Unable to find resource ID 0#0xffffffff