Eclipse: An error has occurred. See the log file .metadata/.log

Posted: 16/05/13

An image of Eclipse: An error has occurred. See the log file .metadata/.log

You're trying to open Eclipse in a workspace you've been working in for ages, but all you see is an error message stating:

An error has occurred. See the log file .metadata/.log

You can try to trawl through your logs to find out what component caused the error, or you can simply delete the .snap file in .metadata.pluginsorg.eclipse.core.resources

After deleting that .snap file I found my project started fine again. It's most likely the file was corrupted when Eclipse attempted to write to it on exit.

Keywords for this post: eclipse, android, metadata, project, workspace, resources, snap