I am trying to run an Android project that someone else has created.
I have opened the project in Eclipse as:
File --> New --> Project --> Android Project from existing code
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
The import java.net cannot be resolved
Do one more step before running:
Right Click(Project) -> Properties -> Java Build Path -> Libraries -> Add Library -> Select the Java Library
Click OK and then clean-build (
Project -> Clean &
Project -> Build All or
Ctrl+B) your project. It should be fine.