Caused by: android.content.res.Resources$NotFoundExceptiton
来源:互联网 发布:头皮痒 知乎 编辑:程序博客网 时间:2024/05/16 12:54
报错:
原因:
Toast.makeText(this, a, 0).show();//此方法的第二个参数为int型时,表示要指定控件的Id,toast的内容就是此控件里面的值
解决:
Toast.makeText(this, a+" ", 0).show();//将第二个参数变为字符串
0 0
- Caused by: android.content.res.Resources$NotFoundExceptiton
- Caused by: android.content.res.Resources$NotFoundException
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/***
- 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
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- Android报Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 .解决办法
- 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 resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- 创建适配器时报:ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundExcepti
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x**
- 2.Android进阶:获取设备可用空间
- CSS设置子元素设置margin-top作用于父元素
- Tyvj P1077 CODE[VS] 2190 有理逼近
- 【基础4】WebDriver的部署
- Java之正则表达式入门理解
- Caused by: android.content.res.Resources$NotFoundExceptiton
- 洛谷 P1026 统计单词个数
- jsdom
- 智能小车-----寻迹的代码
- java8 新特性入门 stream/lambda
- Java字符串所占字节数的小总结
- C语言(19)-----二维数组
- unity学习笔记4
- 让你的代码量减少3倍!使用kotlin开发Android(二) --秘笈!扩展函数