我也有类似的问题,这是我的解决办法:
I had a similar problem, here's my solution:
- 右键点击您的项目,并选择属性
- 选择 Java构建路径从左边的菜单。
- 选择订单和出口标签。
- 从列表中一定要添加到您的项目库或外部罐子的检查的
- 最后,清理项目和放大器;运行。
- Right click on your project and select Properties.
- Select Java Build Path from the menu on the left.
- Select the Order and Export tab.
- From the list make sure the libraries or external jars you added to your project are checked.
- Finally, clean your project & run.
您也可以检查this的回答。