Android Studio doesn't work - unsupported major minor version 51.0

Until yesterday, my Android studio worked fine and helped me build applications. But today, he began to give a Gradle error error, indicating unsupport major minor version 51.0 and asking me to configure gradle.

I get the same error if I try to return the project back.

gradle error

My java version is 7 and older android projects in android studio that work correctly.

$ /usr/bin/java -version 
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=utf8 
java version "1.7.0_07" Java(TM) SE Runtime Environment (build 1.7.0_07-b10) Java HotSpot(TM) 64-Bit Server VM
(build 23.3-b01, mixed mode)

How to solve my problem with Gradle using android-studio?

+3
source share
1 answer

Google 0.7.2 Gradle. Java7. .

0.7.3 .

0.7. + 0.7.1 , 0.7.3 Maven Central.

dependencies {
            classpath 'com.android.tools.build:gradle:0.7.1'
        }
+10

All Articles