Hi Asta,
Make sure you only have the right version of swc in the libs folder or referenced in the project settings (Right click your folder and choose Properties -> Flex Build Path. Make sure there is only one agslib swc there. The issue might be more than swc in build path.
Also, it is better to have fthe same version of flex viewer and flex API.
[ATTACH=CONFIG]28324[/ATTACH]