Gradle sync failed: Cause: com/android/build/gradle/internal/model/DefaultAndroidProject : Unsupported major.minor version 52.0
Consult IDE log for more details (Help | Show Log)
意思就是java版本不对,环境变量和AS的都设置为jdk1.8
J2SE 8 = 52
J2SE 7 = 51
J2SE 6.0 = 50
J2SE 5.0 = 49
JDK 1.4 = 48
JDK 1.3 = 47
JDK 1.2 = 46
JDK 1.1 = 45
解决:
上面这个是1.7的错误,统一改为1.8的