idea 2020.3 项目启动报错 java: java.lang.IllegalArgumentException

4,151 阅读1分钟

报错信息

java: The class java.lang.IllegalArgumentException may be caused by the wrapped ProcessingEnvironment object.
Please pass the wrapped ProcessingEnvironment further to super.init().
If you need to access the original ProcessingEnvironment object (e.g. for creating com.sun.source.util.Trees.instance(ProcessingEnvironment)), you may use following code in the processor implementation:

ProcessingEnvironment unwrappedprocessingEnv = jbUnwrap(ProcessingEnvironment.class, processingEnv);

java: java.lang.IllegalArgumentException

解决方案

-Djps.track.ap.dependencies=false

image.png