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
  • 34,719
  • 24
  • 185
  • 251
slesh
  • 1,628
  • 14
  • 28

1 Answers1

0

please check what sdk you are using locally as below:

enter image description here

Vinay Prajapati
  • 6,621
  • 6
  • 42
  • 80