Eclipse reports an error after the Android project is imported

Source: Internet
Author: User

The following error is reported:

Android requires compiler compliance level 5.0 or 6.0. Found '1. 7' instead. Please use Android Tools
If you encounter the above problems, it does not matter, it is easy to solve. In fact, the compilation environment used by the project is incorrect. Because jdk has 1.5, 1.6, 1.7, and so on, it requires 5 or 6, but you have given it 7, so the compiler will complain.

Two options:

Right-click your Project and choose "Android Tools-> Fix Project Properties". If this does not exist, check the second one.
Right-click your project, select "Properties", and select "Java Compiler" in the dialog box to check the "Enable project specific settings" option, select 1.5 or 1.6 from "Compiler compliance settings.
OK.

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.