android.content.res.Resources$NotFoundException: Resource ID #0x7f030002
来源:互联网 发布:上海锐战网络 编辑:程序博客网 时间:2024/06/05 11:00
1、问题产生
今天写了小demo,想预览下布局,结果提示:This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in。此提示大概就是说ADT版本低于渲染库的版本(问题1)。
解决问题1的办法是升级adt。经过昨天升级adt的痛苦尝试(详情见 想看看Android L的效果,结果导致Eclispe无法使用,最终修复),还是寻找其他方式,最终找到一种较简便的解决办法。解决如下:选中要预览的工程,右键Properties->Android,找到Target Name,选择版本号较小的,如Android2.3.3;再打开layout文件,可以显示预览了。如果还无法显示,请点击中间上方的android小图标,将API的版本改小。
代码差不多写好后,运行,出现错误“Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.”(问题2)
解决问题2的简单办法,仍是修改Target Name,选择版本号较大的,如Android4.4.2;再运行,安装成功,但运行直接崩溃:错误如下:10-10 16:52:24.488 E/AndroidRuntime(13383): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030002(问题3)
2、解决问题
解决问题3的方法:首先找此资源ID,发现其存在如于图1所示位置,竟然找不到布局文件,百思不得其解。最后通过瞎操作,找到一种解决办法,就是删除bin目录,重新运行。
图1
3、总结
看样子,使用集成版的android开发环境问题不是一点点呀,得早些换了。
事后百度问题3,得到另一种解决方法(地址为http://blog.sina.com.cn/s/blog_6d5354cd0100x2in.html)。
- android.content.res.Resources$NotFoundException: Resource ID #0x7f030002
- 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.content.res.Resources$NotFoundException:String resource ID #0x86
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x7f050016
- android.content.res.Resources$NotFoundException:String resource ID #0x86
- android.content.res.Resources$NotFoundException:String resource ID #0x446
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x42
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- BZOJ 3037 创世纪 树形DP
- 检测多个Jar包冲突的class
- TextView
- MTK6515 android打版软件配置
- 第7周上机实践项目3——求圆柱体的表面积
- android.content.res.Resources$NotFoundException: Resource ID #0x7f030002
- uvaoj 1108 - Mining Your Own Business
- 进程间通信之共享内存(一)
- gem相关命令使用
- ie6的png图片不透明问题解决方案
- Matlab求解给定系统稳态误差
- maven+Spring在Eclipse中搭建多模块企业级项目
- 【2015.1.17~18】-【法国巴黎】-第二届传感器和材料制造科学国际会议- EI检索
- Q345B无缝钢管价格一降再降让脆弱不堪的市场见底