Eclipse and Android Studio compile times unsupported major.minor version 52.0 wrong solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.