出现 Error:java: Compilation failed: internal java compiler error 的两种可能情况。
1.可能是jdk版本不一致分别检查以下三处,是否一致。
Preferences -> Compiler -> Java compiler 中的版本设置SDK版本
File -> Project Structure -> Project 中的SDK版本
File -> Project Structure -> Module -> 每个模块Dependencies 中的Module SDK版本
2.可能编译环境内存设置不足。Preferences -> Compiler -> Shared build process heap size
将默认的700M内存,增大一些。



