简体   繁体   中英

Intellij IDEA 2018.1 Jdk10 cannot run test

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?

please check what sdk you are using locally as below:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM