Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x**
2015-04-24 15:53
453 查看
一个原因,你把int类型当做String类型输出了
例如:
此时就会报错,应改为:
例如:
int number = 100; Toast.makeText(this, number, Toast.LENGTH_SHORT).show();
此时就会报错,应改为:
<pre name="code" class="java">Toast.makeText(this, number+"", Toast.LENGTH_SHORT).show();
相关文章推荐
- Caused by: android.content.res.Resources$NotFoundException: String array resource
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f070058 android-studio 3.0 from canary 5 to canary 6
- Caused by: Android.content.res.Resources$NotFoundException: Resource ID #0x7f0c0001
- Caused by: android.content.res.Resources$NotFoundException
- AndroidRuntime Caused by: android.content.res.Resources$NotFoundException: String resource I解决办法
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x1
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x3
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- android错误之 Caused by: android.content.res.Resources$NotFoundException: File res/anim/snailanim.xml f
- Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or pat
- Caused by: android.content.res.Resources$NotFoundException: File res/drawable/***
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: Resource "com.lvche.lvchedingdang:drawab
- 【资源NotFoundException美元:# 0 x55字符串资源】Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x55
- 创建适配器时报:ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundExcepti
- AS 中报错:android.content.res.Resources$NotFoundException: File res/drawable/vpi__textcolor_indicator
- android.content.res.Resources$NotFoundException: Resource is not a Drawable
- android.content.res.Resources NotFoundException解决 Resource ID #0x7
- 踩坑实录 android.content.res.Resources$NotFoundException: String resource ID #0x0