IntelliJ IDEA 编译报错:Error:java: Compilation failed: internal java compiler error

报错内容:

Information:java: javacTask: 源发行版 8 需要目标发行版 1.8
Information:java: Errors occurred while compiling module 'gulimall-common'
Information:javac 1.8.0_91 was used to compile java sources
Information:Module "gulimall-common" was fully rebuilt due to project configuration/dependencies changes
Information:2020/8/17 21:22 - Build completed with 1 error and 0 warnings in 3 s 95 ms
Error:java: Compilation failed: internal java compiler error

报错图:

IntelliJ IDEA 编译报错:Error:java: Compilation failed: internal java compiler error

解决方法:

IntelliJ IDEA 编译报错:Error:java: Compilation failed: internal java compiler error

选择自己项目需要的jdk对应版本。再次编译就可以了。

 

上一篇:leetcode1353最多可以参加的会议数目解题思路


下一篇:Multi ingress controller