Intellij build after gradle updated with an error in the wrong java version

I am using Gradle with intellij.
I update Gradle and then restore my project.
I get the following

enter image description here

  • Pay attention to the first line - Use: javac 1.8.0_65

But I get an error that -source7 or higher should use.
I also set the following in the settings

enter image description here enter image description here

(the sdk (1.8) project is installed with all internal modules) But I still cannot rebuild or compile without this error. Any suggestions?

(obviously, I deleted all my classes and banks, and then Gradle updated and rebuilt the project)

+5
source share
1 answer

On the second screen, make sure that all of your modules use the project SDK by default, as in the screen below. Module configuration can be installed as an old version of java.

enter image description here

0
source

Source: https://habr.com/ru/post/1245438/


All Articles