1、Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory
解决方案:file--->Project Structure -->JDK location 中去掉复选框Use embedded JDK,再选择安装在电脑中的JDK,最好选择高版本的。