我正在跑步:
./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:
//顶级构建文件,您可以在其中添加所有子项目/模块共有的配置选项。
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
}
我有:
答案 0 :(得分:1)
我更新了/ usr / bin / java中的java:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
现在它正在构建。