-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
检查自身本地网络或maven仓库配置 |
Beta Was this translation helpful? Give feedback.
-
尝试了很多方法,还是不能解决,目测应该不算参考或者网络问题,其他引入都正常,就单独net.mamoe:mirai-core-api这个有问题了,也尝试用阿里云仓库啥的 参考了https://github.com/orgs/simple-robot/discussions/23, https://github.com/orgs/simple-robot/discussions/27 都没能解决 试着改成还是没有,降级版本也尝试了
报错内容 Possible solution:
强制启动后,程序报错内容 . ____ _ __ _ _ 2022-12-16 16:51:58.763 INFO 19652 --- [ main] c.b.BotApplication : Starting BotApplication using Java 11.0.12 on DESKTOP-EHMI1F5 with PID 19652 (C:\Users\qiwu-java\IdeaProjects\qq-chat-bot\out\production\classes started by qiwu-java in C:\Users\qiwu-java\IdeaProjects\qq-chat-bot) Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'love.forte.simboot.spring.autoconfigure.SimbotListenerMethodProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [love.forte.simboot.spring.autoconfigure.SimbotListenerMethodProcessor]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: love/forte/simbot/logger/LoggerFactory Disconnected from the target VM, address: '127.0.0.1:49155', transport: 'socket' Process finished with exit code 1 |
Beta Was this translation helpful? Give feedback.
-
错误显示无法找到 gradle项目使用也可尝试引入Kotlin插件,尽管不使用Kotlin语言开发 (参考自mirai文档)。 |
Beta Was this translation helpful? Give feedback.
-
怀疑是gradle仓库的问题,尝试各种方法,升级版本就是不成功,换成maven项目后,这个问题反而就消失了 |
Beta Was this translation helpful? Give feedback.
-
这个问题只需要在 plugins 添加kotlin.jvm 就能解决
|
Beta Was this translation helpful? Give feedback.
这个问题只需要在 plugins 添加kotlin.jvm 就能解决