问题描述 今天使用Android Studio 2.0打开我之前的项目时,编译报了如下错误: Error:Cause: com/android/build/gradle/internal/model/DefaultAndroidProject : Unsupported major.minor version 52.0 其中build.gradle文件内容如下所示: // Top-level build file where you can add configuration options c…
今天使用Android Studio 2.0打开我之前的项目时,编译报了如下错误: Error:Cause: com/android/build/gradle/internal/model/DefaultAndroidProject : Unsupported major.minor version 52.0 其中build.gradle文件内容如下所示: // Top-level build file where you can add configuration options common…
为什么出现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…