在idea中出现这个错误是Project SDK和Project language level设置不一致导致,修改方式如下:
file->project Structure(ctrl+alt+shift+s)

修改完即可。

转载于:https://my.oschina.net/guowei11/blog/3084458idea出现无效的源发行版:11

相关文章:

  • 2021-09-26
  • 2021-12-17
猜你喜欢
  • 2021-05-28
  • 2021-12-29
  • 2021-10-06
  • 2021-08-08
  • 2021-10-25
  • 2021-09-02
  • 2022-12-23
相关资源
相似解决方案