1、导入项目(步骤省略),结果项目上有错误;右击你的project——>Build path——>Configure build Path;
![](https://iknow-pic.cdn.bcebos.com/ac6eddc451da81cb62e6c4de5e66d016092431a4?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
2、这里仅仅在项目上有错误,却不知道在什么地方出错,解决办法是查看Problem选项卡;在弹出的窗口中选择,Library标签页;
![](https://iknow-pic.cdn.bcebos.com/caef76094b36acafd647d1ef70d98d1001e99c7a?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
3、在这里查看错误,找出问题所在,我这里是因为环境配置导致的,解决办法是更改环境配置;
![](https://iknow-pic.cdn.bcebos.com/7c1ed21b0ef41bd5fa3dafe75dda81cb39db3db2?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
4、点击项目,右键,重新配置项目jdk;
5、找到项目jdk更改路径,点击编辑,配置jdk;
6、这里显示报错原因,更改jdk即可;
7、成功配置,没有报错信息,接下来只需点击OK就可以了。