Version 52.0 is the JAVA8 environment. When Gradle Tools is upgraded to 2.2.1, the error may be reported at compile time.
Many netizens say change Java version, but many times invalid. Here are some of the solutions I've encountered:
The solution is as follows:
In 1.Android Studio:
This problem occurs most of the time when upgrading Gradle Tools 2.2.1 To upgrade Android studio to the latest 2.2 release.
The reason is that there is no sync update for Android SDK Build-tools. Upgrade the SDK Build-tools to the latest on the OK.
In 2.eclipse:
When you upgrade the Android SDK in Android Studio , you may also report the error when compiling with Eclipse.
(although eclipse is rarely used, it is still used in some cases)
The basic solution is to change the JDK version to 1.7, or install 1.8 and then change the project to 1.8 version.
But there are times when you want to build based on the 1.7 version, and you don't want the compiled version to be too high,
The Fix method is simple:
Open Android SDK Manager in Build-tools Select a relatively low version of the
My choice is 23.0.1.
In Eclipse, the Android project is configured:
Add the following sentence to the file project.properties (if you have downloaded the Buildtools version locally):
sdk.buildtools=23.0.1
It's OK.
The above is a recent problem, I hope to help you.
Eclipse and Android Studio compile times unsupported major.minor version 52.0 wrong solution