问题已解决
2021-11-12 17:03:40 I/null: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 mirai.no-desktop
以关 闭.
2021-11-12 17:03:40 I/null: Mirai is using desktop. Captcha will be thrown by window popup. You can add mirai.no-desktop
to JVM properties (-Dmirai.no-desktop) to disable it.
2021-11-12 17:03:40 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
2021-11-12 17:03:42 I/Bot.1417397886: Login successful
2021-11-12 17:03:42 I/Bot.1417397886: Saved account secrets to local cache for fast login.
2021-11-12 17:03:42 I/Bot.1417397886: Login successful.
2021-11-12 17:03:42 V/Bot.1417397886: Event: BotOnlineEvent(bot=Bot(1417397886))
2021-11-12 17:03:42 I/Bot.1417397886: Bot login successful.
botTest (1417397886) Login successful
log4j的error不影响正常启动
引起未登录成功的原因是在滑块验证成功后 未进行二维码扫码验证 导致bot的json文件不完整
解决办法:
1.在miraiAndroid进行滑块验证
2.再进行扫码验证
3.导出json文件
4.电脑上覆盖bot的json文件