简体   繁体   English

R.java保留对不存在的资源ID的引用

[英]R.java keeps references to non existing resource id's

How can I get rid of references to non existing id's in R.java in android project in eclipse. 如何在Eclipse中的android项目中摆脱对R.java中不存在的id的引用。 It for resources I have renamed or removed. 它用于我已重命名或删除的资源。

What happens sometimes is that I remove a string as an example but the project still shows it as an existing resource. 有时发生的情况是,我删除了一个字符串作为示例,但项目仍将其显示为现有资源。 And when I run the app the resource ID from R.java is shown instead. 当我运行该应用程序时,将显示R.java的资源ID。 How can I clean these away? 如何清除这些?

Clean project doesn't work and building it neither. 清洁项目无效,也无法构建。

Suggestions? 有什么建议吗?

Delete the R.java. 删除R.java。 It will be regenerated again on your next build with a non-cached version. 它将在您的下一个构建版本中使用非缓存版本再次重新生成。

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

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