问题描述
今天使用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 to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-alpha4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module b