Eclipse Error: Type cannot be resolved

EclipseProblem running an Android application in Eclipse: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

Solution: In Eclipse, the cause of this problem is that somehow the SYSTEM JRE LIBRARY associated with the project was deleted.  Simple fix in Eclipse:

  • Right Click Project you are working on from Package Explorer
  • Go to Properties
  • Go to Java Build Path from the right tree structure
  • Go to Libraries Tab
  • Choose Add Library Button
  • Select JRE System Library
  • Hit Next, the Radio button will prompt the Workspace default JRE, and let it be that way
  • Hit Finish

Still getting the error, though, in the case of an Android bundle... stay tuned....