Today I upgraded to Android SDK 2.3 and I also upgraded the Eclipse Plugin Androi Developer Tools 8.0 (from 0.9.9). I also upgraded my Java Development Kit to 1.6_22.
No
The way that helped me.
Take the following file from the working project:
workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Working-project-name/.indexes
Replace the broken project file:
workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Broken-project-name/.indexes
Had EXACT issue as the original Question! Had not done anything but close my project/Eclipse and was startled by all the errors upon reopening.
In my case I only needed to do was change/switch workspaces. o_O When I reselected my original workspace I then found everything was resolved and working again!
This problem was caused for my old projects on a new machine that did not have an older Android SDK installed.
To fix, simply go into project.properties and observe your old version number:
# Project target.
target=Google Inc.:Google APIs:3
Simply update the version number, like so:
# Project target.
target=Google Inc.:Google APIs:7
You will find that Eclipse then picks up the right SDK version and starts working.
No need to create a new project from scratch. If "Fix Project Properties" or "Add Library > Android Classpath Container" does not work, "project.properties" file might be missing in the root of your project folder. Add that file and set the Android target in the Project properties, re-add the Android Library, Fix Project Properties again, Android System Library should now be included in your project. Rebuilt, and you are good to go!
From my personal experience. For self documenting as well, since this happens quite often on me:
Eclipse Helios SR2
Android SDK R.20
Android NDK R8b
OSX 10.7.4
In my case, my project.properties had android-8 listed as the target, which I didn't have installed.
For me, the problem was that in the Project settings - Android tab, I had no Android version selected.