1. 使用快捷键:Ctrl+shift+R,在弹出框中输入.classpath 找到被作为library引入的那个.classpath文件。 2.将kind="src" path = "src" 放在第一行! 3.重启,ok!