Unsupported major.minor version 52.0

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

解决:

Unsupported major.minor version 52.0_第1张图片
QQ截图20170503095329.jpg

上面这个是1.7的错误,统一改为1.8的


Unsupported major.minor version 52.0_第2张图片
QQ截图20170503095404.jpg

你可能感兴趣的:(Unsupported major.minor version 52.0)