Java – eclipse error: “Failed to read the project description file” on importing project

eclipse error: “Failed to read the project description file” on importing project… here is a solution to the problem.

eclipse error: “Failed to read the project description file” on importing project

I just migrated to Ubuntu and thought it would be a simple thing to import my Android project from my old workspace to my new one on Ubuntu. Hah!

I go to: New -> Project… -> Android project from existing code. Select Copy to workspace.

The error I get is:

There was a problem refreshing local changes
An error occurred while refreshing resources using the local file system.
Unable to read the project description file (.project) for “MyProject”. The file has been changed on disk and now contains invalid information. The project won’t function properly until the profile is restored to a valid state.

I have checked the project file without any problems. Any ideas?

Solution

I recommend manually browsing the folder containing your workspace and deleting anything copied from your project. Then “copy” your project to the workspace (also manually). Next:

New -> Project... -> Android Project From Existing Code. 

But don’t tick “Copy to workspace” anymore because you’ve already put it there. That should solve your problem.

Related Problems and Solutions