Eclipse地狱。 。无法读取项目描述文件(.project) [英] Eclipse Hell . . . Failed to read the project description file (.project)

查看:1838
本文介绍了Eclipse地狱。 。无法读取项目描述文件(.project)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为Eclipse正在努力让我感到凄惨。几个小时前,我的项目正在工作和编译良好。突然间,全部改变了。 Eclipse以某种方式擦除我对我的文件(活动,清单等)所做的所有更改我确实经常保存,但是当我去运行该项目时,我收到错误,我有一个构建错误。我检查了没有,所以我去关闭Eclipse,所以我可以重新打开,看看错误是否会消失。相反,Eclipse会擦干净我所有的文件,最后我在磁盘上的一个项目结束了很多空白的代码文件。我试图运行,我得到以下错误信息。



无法读取'com.example.android.nfc.simulator.FakeTagsActivity.FakeTagsActivity'的项目描述文件(.project)。文件已在磁盘上更改,现在包含无效信息。该项目将无法正常工作,直到描述文件恢复到有效的状态。



任何人都有一个想法,在世界上这是关于和如何可以纠正这个吗

解决方案

我建议删除所有eclipse相关的配置文件(如果您已经手动制作了一些更改),然后再次输入项目,方法如下:



文件 - >导入... - >现有项目进入工作区 >

在执行此操作之前,请确保您对整个项目进行备份。


I think Eclipse is trying to make me miserable. A couple of hours ago, my project was working and compiling well. Suddenly that all changed. Eclipse somehow wipes out all changes I have made to my files(activity, manifest etc.) I make sure to save often but when I go to run the project, I get the error that I have a build error. I checked and there was none, so I go to close Eclipse, so I can reopen and see if the errors will go away. Instead what happens is Eclipse wipes clean all my files and I end up with a project on disk with lots of blank code files. I try to run anyway, and I get the error message below.

Failed to read the project description file (.project) for 'com.example.android.nfc.simulator.FakeTagsActivity.FakeTagsActivity'. The file has been changed on disk, and it now contains invalid information. The project will not function properly until the description file is restored to a valid state.

Anyone have an idea what in the world this is about and how I can rectify this?

解决方案

I would recommend to wipe out all the eclipse related configuration files(make sure you take the backup if you have manually made some changes in those) and import the project again, by following

File -> Import... -> Existing Project into Workspace

Make sure you take the backup of whole project before doing this.

这篇关于Eclipse地狱。 。无法读取项目描述文件(.project)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆