[Java Problem log] IntelliJ Idea Compilation error: Javactask: Source release 1.8 requires target release 1.8

Source: Internet
Author: User

Reason: Unknown, may be caused by the upgrade idea, previously played an upgrade patch;

Error message:

Information:java:javacTask: Source release 1.8 requires target release 1.8
INFORMATION:2017/1/24 11:27-compilation completed with 1 error and 0 warnings in 5s 873ms
Information:java:Errors occurred while compiling module ' java-lessions '
Information:javac 1.8.0_91 was used to compile Java sources
Information:module "Java-lessions" was fully rebuilt due to project configuration/dependencies changes
Error:java:Compilation failed:internal Java Compiler Error

Try the workaround:

1, modify the SDK version to 1.8, still no solution;

2, modify languages level to 8, is still invalid;

Final Solution:

File--> settings--> java complier---> Find the Project module, modify it to 1.8.

Then run the test code, everything OK ~

[Java Problem log] IntelliJ Idea Compilation error: Javactask: Source release 1.8 requires target release 1.8

Related Article

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.