I get the error after I generate the new target platform. I have to restart Eclipse to get rid of this. If there any better way to overcome this error.
Use File > Refresh
or F5 to refresh manually.
Look at Preferences > General > Workspace
and select Refresh using native hooks or polling
to do this automatically.