如何解决Unsupported major.minor version 52.0问题?

为什么出现Unsupported major.minor version 52.0?

You get this error because a Java 7 VM tries to load a class compiled for Java 8

Java 8 has the class file version 52.0 but a Java 7 VM can only load class files up to version 51.0

In your case the Java 7 VM is your gradle build and the class is com.android.build.gradle.AppPlugin

升级Java8,顺利解决问题

posted @ 2019-07-03 11:11  cnkker.com  阅读(271)  评论(0编辑  收藏  举报