本文主要是介绍spotbugs不兼容IDEA2023.2,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
运行时出现报错,之后spotBugs就是灰色的了
spotbugs java.lang.LinkageError: loader constraint violation: when resolving method 'org.slf4j.ILoggerFactory org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()' the class loader com.intellij.ide.plugins.cl.PluginClassLoader @5ee2027a of the current class, org/slf4j/LoggerFactory, and the class loader com.intellij.util.lang.PathClassLoader @ea4a92b for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature (org.slf4j.LoggerFactory is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @5ee2027a, parent loader 'bootstrap'; org.slf4j.impl.StaticLoggerBinder is in unnamed module of loader com.intellij.util.lang.PathClassLoader @ea4a92b)
原因是slf4j-api-1.7.25.jar的问题,删掉重启IDEA就可以了
用户名替换电脑实际的用户名
Windows的目录是
C:\Users\用户名\AppData\Roaming\JetBrains\IntelliJIdea2023.2\plugins\spotbugs-idea\lib
MAC的目录是
/Users/用户名/Library/Application Support/JetBrains/IntelliJIdea2023.2/plugins/spotbugs-idea/lib
这篇关于spotbugs不兼容IDEA2023.2的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!