在Eclipse中删除文件导致每个图像都是错误的
正如标题所说,如果我在运行游戏时从可绘制文件夹中删除任何文件,每个图像都是另一个图像,所以我将菜单屏幕作为角色,将武器作为按钮 - 就像所有地址都完全搞砸了一样
我尝试过项目 ->清理并删除 gen 文件夹(然后重新生成),但它根本没有任何效果
有人可以帮助我吗,现在我添加到项目中的每个文件都必须永远保留在那里,否则整个项目就会损坏。 ..
Just what the title says if I delete any file out of the drawable folder when I run the game every image is another image, so I've got menu screens as characters, and weapons as buttons - its like all the addresses get totally screwed up
I've tried Project -> Clean as well as deleting the gen folder (which is then regenerated) but it has had no effect at all
Can someone please help me, right now every single file I add to a project has to remain there forever or the whole project is broken...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我有时会看到这种情况发生,但 Project >修复它所需要做的就是清洁。确保在清理对话框中选择了正确的项目。
I've seen this happen sometimes but Project > Clean is all you need to do to fix it. Make sure that the correct project is selected in the clean dialog.
尝试删除 R.java 并重建项目。它将重新生成包含所有资源 id 的
R.java
Try deleting
R.java
and Rebuild project. It would re-generateR.java
which contains all id of resources尝试从 Eclipse 中删除项目,但不要删除源代码。然后通过选择“从现有代码创建”选项来创建一个新的 Android 项目。当其他方法都失败时,这对我有用一次。
Try deleting the project from eclipse but not the source code. And then create a new android project by selecting the 'create from existing code' option. This worked for me once when the rest failed.