I reinstalled my eclipse. and then imported all the projects in the Eclipse, but every project has a common error:
Cannot find the class file for java.lang.Object.
I just had this problem and all I had to do was clean the entire workspace, i.e. all projects in the workspace. The error went away.