安卓中出现android.content.res.Resources$NotFoundException: String resource ID #0x0
2017-03-30 14:56
489 查看
在使用Android studio运行项目时报android.content.res.Resources$NotFoundException,查了一下发现是由于在代码中给textView或EditView赋值时,赋的是int类型的值,因为直接使用setText(user.getId),没有注意到id是int类型,所以报了这个错误。
相关文章推荐
- 安卓 AlertDialog 报 android.content.res.Resources$NotFoundException 的坑
- 安卓异常处理android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException解决方案
- android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
- 解决android.content.res.Resources NotFoundException的一个方法(转)
- android:android.content.res.Resources$NotFoundException: String resource ID #..
- 解决android.content.res.Resources NotFoundException的一个方法
- android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到资源文件ID #0x0
- 解决android.content.res.Resources NotFoundException的一个方法
- android.content.res.Resources$NotFoundException: String resource ID #0x7f050016
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException:String resource ID #0x86
- 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 #0x6错误的解决办法
- android.content.res.Resources$NotFoundException: String resource ID #0x6d
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: Resource ID解决办法
- android.content.res.Resources$NotFoundException 异常处理