解决方法如下
Try cleaning your project by going to the following menu item:
Project > Clean...
If that doesn't work, try removing the jars from the build path and adding them again.
引用
https://stackoverflow.com/questions/4322893/eclipse-error-the-import-xxx-cannot-be-resolved
浙公网安备 33010602011771号