从github上下载项目下来报错,其本身的环境变量为1.5,可是我本地为1.8,Rebuild的时候编译报错,解决方法

  1. IDEA中File==》Project Setting==》Modules
    IDEA java:-source 1.5中不支持diamond运算符,请使用-source7或更高版本以启动diamond运算符
    选择后点击Apply
  2. File 》 Settings 》 Build, Execution, Deployment》 Compiler》 Java Compiler
    IDEA java:-source 1.5中不支持diamond运算符,请使用-source7或更高版本以启动diamond运算符
    因为我本地JDK是1.8所以我就填了1.8

相关文章:

  • 2021-12-24
  • 2021-11-15
  • 2021-09-24
  • 2021-06-28
  • 2021-07-21
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2021-08-01
  • 2021-09-08
相关资源
相似解决方案