4

Cannot run test with IDEA 2018.1 + JDK 10. It says:

Error:(6, 1) java: modules are not supported in -source 8 (use -source 9 or higher to enable modules)

I've raised language level up to 10 using menus:

File->Project Structure -> Project -> Project Language Level 10

File->Project Structure -> Modules{each module} -> Language Level 10

but it didn't help.

What can be reason of the error?

Cœur
  • 37,241
  • 25
  • 195
  • 267
slesh
  • 1,902
  • 1
  • 18
  • 29

1 Answers1

0

please check what sdk you are using locally as below:

enter image description here

Vinay Prajapati
  • 7,199
  • 9
  • 45
  • 86