Eclipse error: "The import XXX cannot be resolved"
解决方法如下
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