Android: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
Solution
Try the following any one solution and problem will go away:
1) Apply following steps:
3) Apply following steps:
Click OK and then clean-build (Project -> Clean & Project -> Build All or Ctrl+B) your project. It should be fine.
Try the following any one solution and problem will go away:
1) Apply following steps:
- Close the project and reopen it.
- Clean the project (It will rebuild the buildpath hence reconfiguring with the JDK libraries)
OR - Delete and Re-import the project and if necessary do the above steps again.
- Go to properties of project with the build error (right click > Properties)
- View the "Libraries" tab in the "Build Path" section
- Find the "JRE System Library" in the list (if this is missing then this error message is not an eclipse bug but a mis-configured project)
- Remove the "JRE System Library"
- Hit "Add Library ...", Select "JRE System Library" and add the appropriate JRE for the project (eg. 'Workspace default JRE')
- Hit "Finish" in the library selection and "OK" in the project properties and then wait for the re-build of the project
- Hopefully the error will be resolved ..
3) Apply following steps:
- Right click the project in the package explorer.
- Source > Clean up...
- Next > Finish
Click OK and then clean-build (Project -> Clean & Project -> Build All or Ctrl+B) your project. It should be fine.
Comments
Post a Comment