gradlew/Android Studio - 不支持 major.minor 版本 52.0

gradlew/Android Studio - Unsupported major.minor version 52.0

我是运行:

./gradlew assembleDebug 

从我的项目文件夹中获取错误:

* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0

我有以下 build.gradle:

// 顶级构建文件,您可以在其中添加所有 sub-projects/modules.

通用的配置选项
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://jitpack.io"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

我有:

我更新了 /usr/bin/java 中的 java 来自:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

现在正在构建。