Java – Unable to resolve target ‘android-15’ until the SDK is loaded

androideclipsejava

i'm quite new in eclipse.

I download a coding a get the error as below:

  • the project was not build since its build path is incomplete. Cannot find the class for java.lang.Object. Fix the build path then try building this project
    -The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
  • Unable to resolve target 'android-15'
  • Unable to resolve target 'android-15' until the SDK is loaded.

Any idea how to solved it?

Best Answer

One thing which solved it for me was closing, then re-opening the project (r-click on project name in Package Explorer, "Close Project" then r-click on project name in Package Explorer, "Open Project").

No amount of cleaning the project helped me, and I had the correct version of the API installed. Eclipse is just super buggy and often breaks my build paths.