Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f解析
来源:互联网 发布:jdk 7u67 linux x64 编辑:程序博客网 时间:2024/06/04 01:26
先看日志报错这个错误纠结我两天了,真的要崩溃了~_~
关于android.content.res.Resources$NotFoundException: Resource ID的问题,那行代码是onCreate加载.xml布局,是加载的R.layout.xxxx,不是R.id.xxxx,布局文件存在,重新命名也不行,R文件的layout里也有这个id,之前没问题,现在再看也是没问题的。我又在网上找了找,比如修改AndroidManifest.xml里面的版本,clean项目再运行等等,还是不行,重启手机和IDE也不行。
我的问题:尽管那个图片在真巧的位置上还是找不到那个图片资源,R文件上也有那个文件,运行生成APK的时候就是报错 找不到。
解决方法:在R文件上找到对应的ID #0x7f030014,找到那个报错的布局文件(一般是图片),将布局文件另一个drawable文件夹下。clean一下,然后重新运行项目。OK 完美解决~
阅读全文
1 0
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f解析
- 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
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x**
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x19
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x3
- Caused by: Android.content.res.Resources$NotFoundException: Resource ID #0x7f0c0001
- Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x1
- Caused by: android.content.res.Resources$NotFoundException: String array resource
- Caused by: android.content.res.Resources$NotFoundException
- Android: android.content.res.Resources$NotFoundException: Resource ID #0x7f030009
- android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
- android.content.res.Resources$NotFoundException: String resource ID #0x6d
- Android Studio导入Eclipse项目出现乱码,真机运行汉字乱码。
- 第六次上机实验
- CollapsingToolbarLayout使用介绍
- Java 中 String 之 compareTo()的程序源码浅析
- 51Nod 1244 莫比乌斯函数前缀和
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f解析
- HDU3401(dp + 单调队列优化)
- 【Effective C++】读书笔记 条款49~51
- ubuntu屏幕亮度调节
- logistic regression 分类:机器学习
- ORACLE创建用户并授权
- 排列序号
- python 整数越界问题
- 详解js中Number()、parseInt()和parseFloat()的区别