This error was suggested earlier in StackOverflow - try this thread and see if it helps:
Compiling and Running ApiDemos
Otherwise, it would be useful to see your code, or perhaps a link to the site you are using, to try to reproduce the error and provide more specific answers. My first thoughts were that your build path had some problems in your project properties, that it does not find the appropriate libraries.
source share