我正在使用jdk 11.0.6并与javaFX插件一起单独使用gradle。运行程序时,intellij给我错误
4:46:44 PM: Executing task 'run'...
> Configure project :
Found module name 'Notes'
> Task :compileJava FAILED
C:\Users\fahid\IdeaProjects\Notes\src\main\java\module-info.java:1: error: modules are not supported in -source 8
module Notes {
^
(use -source 9 or higher to enable modules)
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
1 actionable task: 1 executed
4:46:45 PM: Task execution finished 'run'.
我该如何解决?
注意-我在项目结构和模块部分都选择了jdk11。(截图)。