【发布时间】:2014-10-21 14:04:45
【问题描述】:
在我最近安装了最新的 Eclipse ADT 捆绑包后,我在处理的一个旧项目中遇到了一些错误:
No known package when getting value for resource number 0x7f080028
android.content.res.Resources$NotFoundException: String resource ID #0x7f080028
at android.content.res.Resources.getText(Resources.java:222)
at android.content.res.Resources.getString(Resources.java:275)
at android.content.Context.getString(Context.java:183)
...
在我的 R 文件中,我要查找的字符串和资源 ID 之间存在正确的连接。
我尝试了几种方法来解决我的问题:
- 清理所有项目
- 将所有资源名称重命名为小写名称
- 重启电脑
我之前使用“adt-bundle-windows-x86_64-20130522”(它编译时没有运行时错误)并下载“adt-bundle-windows-x86_64-20140702”,因为更新期间发生错误。
有什么建议吗?
【问题讨论】: