The idea is to use JDK version 1.8, but using a generic error?

Just use the idea, imported project or write your own projects using a generic error: Diamond types are not supported at language level '6'

Questions are as follows:
Here Insert Picture Description
Problem Solving:
1. Click File -> Project Structure check JDK version
Here Insert Picture Description
2. If you are using a map on SDK 1.8, and then check the modules used in the correct SDK
Here Insert Picture Description
to modify the image above SDK to OK! If you start the project reported the following error:
Error: the Java: Compilation failed The: Internal the Java Compiler error
Here Insert Picture Description
here means inconsistency jdk version, cause a compiler error.
Solution:
Click File-> Settings-> Build, Execution, Deployment-> Compiler-> Java Compiler
Here Insert Picture Description

If you remember to help small series of point like oh ~

Published 15 original articles · won praise 32 · views 6342

Guess you like

Origin blog.csdn.net/CSDN_Qiang17/article/details/90607751