最近我安装了最新的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”。
有什么建议吗?