I got this error when I tried renaming a Project in Project Explorer in Eclipse:
Resource is out of sync with file system
To fix this error: Right-click on the Project and select Refresh.
This error can be avoided via auto-refresh. To turn this on check the Refresh Automatically option found within the Preferences tab:
Window > Preferences > General > Workspace