1. 问题

Usage of API documented as @since 1.8+”报错解决

2. 问题原因

  • 由于使用了JAVA8的新特性,但是Language Level(最低可支持的版本)比较低,无法支持这些特性。
  • 我这里设置的Language Level为6.0,可是却使用了8.0/9.0的新特性Lambda表达式,6.0无法解析这些特性,出现报错信息。

3. 解决

  • 打开Project Structure,选泽侧边栏的Modules,在Sources窗口中修改Language Level(必须大于等于报错信息给出的level)。改动后,IDE错误消失。如下图所示。
    Usage of API documented as @since 1.8+”报错解决

参考资料

Usage of API documented as @since 1.8+”报错的解决办法

相关文章:

  • 2021-04-15
  • 2021-12-13
  • 2021-09-23
  • 2022-12-23
  • 2021-09-01
  • 2021-11-16
  • 2021-05-05
猜你喜欢
  • 2021-09-22
  • 2021-06-22
  • 2021-09-29
  • 2021-10-21
  • 2022-12-23
  • 2021-08-06
相关资源
相似解决方案