Unable to make field
private com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs
accessible:
module jdk.compiler does not "opens com.sun.tools.javac.processing"
to unnamed module @46146832
出现错误的原因是,我的项目使用的jdk8,但是设置中使用的是jdk17版本
PS C:\Users\dgq\Downloads\productqualification-develop\productqualification-develop> Java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
PS C:\Users\dgq\Downloads\productqualification-develop\productqualification-develop>
改成jdk8,就可以了