Upgrade to IntelliJ idea 2021.2 and start the project with an error

Upgrade to IntelliJ idea 2021.2 and start the project with an error

Problem description solution

Problem description

Upgrade to IntelliJ idea 2021.2 and start the project with an error.

Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED

Solution

File – project structure,
modify as shown in the figure

Read More: