This happens when you are targetting an API version that for some reason is not mapped on your buildpath.
- See which is the version of the SDK you are pointing to at the project.properties file.
- Go to the SDK Manager at Window->Android SDK Manager
- Check the Android API item that matches the version you want to use, OR, click on the latest one and then update your project.properties file.
- Make sure your project build configuration is Project->"Build Automatically"
- Retsart Eclipse (claning and rebuilding may not refresh all the project properties)