在Idea中编译时出现这个错误:Error:java: Compilation failed: internal java compiler error。

Information:Using javac 1.7.0_79 to compile java sources
Information:java: javacTask: 源发行版 1.6 需要目标发行版 1.6
Information:java: Errors occurred while compiling module 'MyThrift'
Information:Module "MyThrift" was fully rebuilt due to project configuration/dependencies changes
Information:2015/8/27 10:43 - Compilation completed with 1 error and 0 warnings in 4s 240ms
Error:java: Compilation failed: internal java compiler error

解决办法很简单:File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler

设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.7版本的。  

Compilation failed: internal java compiler error-LMLPHP

05-08 15:47