创建适配器时报:ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundExcepti
来源:互联网 发布:总裁小说改编的网络剧 编辑:程序博客网 时间:2024/05/17 01:13
ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
是因为view的setText(),传入的不是字符串类型的基础数据类型,比如整数类型..虽然编译可以但是运行时会报错...
比如amountView.setText(person.getAmount()); 就会报错..
需修改为amountView.setText(person.getAmount().toString());
- 创建适配器时报:ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundExcepti
- AndroidRuntime Caused by: android.content.res.Resources$NotFoundException: String resource I解决办法
- Caused by: android.content.res.Resources$NotFoundExceptiton
- Caused by: android.content.res.Resources$NotFoundException
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/***
- CheckBox报错Error inflating class android.widget.CheckBox, Caused by: android.content.res.Resources$No
- CheckBox报错Error inflating class android.widget.CheckBox, Caused by: android.content.res.Resources$No
- Caused by: android.content.res.Resources$NotFoundException: String array resource
- android错误之 Caused by: android.content.res.Resources$NotFoundException: File res/anim/snailanim.xml f
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable-mdpi/
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/main_tab_conversation_
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml fr
- 异常/AndroidRuntime(22850): android.content.res.Resources$NotFoundException: Stri
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- 解决ubuntu12.04中使用ibus导致gvim假死的问题
- ASP.NET导出数据到excel中
- Source Insight(vs2012,ultraedit) 中Tab键设置为4个空格代替
- 简单的线程工厂
- 杭电OJ题 1408 盐水的故事 解题报告
- 创建适配器时报:ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundExcepti
- LCD Driver for Linux2.6.xx+ARM9
- Chromium
- 大家一起写操作系统-准备知识(1)--计算机的启动过程
- 精明的程序员——小程大爱
- 杭电OJ题 1412 {A} + {B} 解题报告
- 多态性
- POJ 2763
- GNU C 的复合语句