Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引入的依赖还是找不到一些事件的包 #4

Open
lhb-github-ai opened this issue Aug 21, 2023 · 6 comments
Open

引入的依赖还是找不到一些事件的包 #4

lhb-github-ai opened this issue Aug 21, 2023 · 6 comments

Comments

@lhb-github-ai
Copy link

image
这些事件的包都找不到,是缺少什么依赖?

@Ketuer
Copy link
Contributor

Ketuer commented Aug 24, 2023

这是Mirai核心的东西,全是Kotlin写的

@Xoc001
Copy link

Xoc001 commented Aug 24, 2023

所以怎么解决呢,这个我也缺少。拼写出来爆红

@Ketuer
Copy link
Contributor

Ketuer commented Aug 24, 2023

所以怎么解决呢,这个我也缺少。拼写出来爆红

首先确定你的IDEA是否最新版本,并且Maven依赖已经正确导入了
然后确定你的JDK版本是为Java17
最后确定你的SpringBoot版本是否为3以上
如果以上都满足,那有可能是你IDEA卡了,你可以试试看敲完整包名 + 类名
net.mamoe.mirai.event.events.GroupMessageEvent

@lhb-github-ai
Copy link
Author

idea 还需要用最新版本?

@fiafeng
Copy link

fiafeng commented Sep 5, 2023

可以尝试更新kotlin版本试一下。我更新就之后就好了

@01Tvanil
Copy link

IDEA設置中更新kotlin插件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants