【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie
java: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'
lombok版本兼容性的问题
Maven依赖更新新版 lombok 为 1.18.30 即可
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</dependency>
如果更新完还不行, 可以试试 clean 等 清理缓存
缓存清一下, 或者新建个项目重新加载maven依赖文章来源:https://www.toymoban.com/news/detail-734307.html
文章来源地址https://www.toymoban.com/news/detail-734307.html
到了这里,关于【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!