在 2.6.0 及以下没问题
报错代码

val bot = BotFactory.newBot(ywConfig.qqNumber, ywConfig.qqPassword) { fileBasedDeviceInfo("config/device.json") protocol = BotConfiguration.MiraiProtocol.ANDROID_PHONE }

错误信息

Exception in thread "main" java.util.ServiceConfigurationError: net.mamoe.mirai.IMirai: Provider net.mamoe.mirai.internal.MiraiImpl could not be instantiated