今天在vsCode进行开发,一直报这么一个错误:
Exception in thread "main" java.lang.NoSuchMethodError
清理缓存之后发现了原因,在同一个包下定义了两个相同的类。下面是清理缓存的步骤:
New in 0.33.0
You can clean the workspace directory in the following way:
- Open the command palette (F1)
- select Java: Clean the Java language server workspace
- click Restart and delete
1. 在vscode工具中,同时按着:Fn+F1,出现下面的下面的视图:
2. 然后输入
3. 选择 Java: Clean the Java language server workspace,之后出来一个弹框,选择 Restart and delete
扫描二维码关注公众号,回复:
4998329 查看本文章