简体   繁体   English

从R.string中删除了条目,现在所有字符串都错了吗?

[英]Deleted entries from R.string and now all strings are wrong?

I've had this issue before but was able to revert to a previous backup - this time no such luck. 我以前遇到过此问题,但能够还原到以前的备份-这次没有这种运气了。

I deleted a key entries in the R.strings.xml and now all the strings in my program are incorrect as if the memory address has changed and its retrieving them in the wrong order -- is there as simple fix to this besides inserting an older copy of strings.xml?? 我删除了R.strings.xml中的一个关键条目,现在程序中的所有字符串都不正确,就好像内存地址已更改并且以错误的顺序检索它们一样—除了插入较旧的字符串之外,是否还有简单的解决方法? string.xml的副本?

Probably problem of generated R.java and id's stored there. 可能是生成的R.java和id存储在此处的问题。

Try: 尝试:

1) delete gen folder in Package explorer, Exlipse will shortly recreate this (rebuild resources and string id's) 1)在Package Explorer中删除gen文件夹,Exlipse将很快重新创建该文件夹(重建资源和字符串ID)

2) Use Menu->Project->Cleanup to completely rebuild your project. 2)使用菜单->项目->清理来完全重建您的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM