MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. haitang130
    3. 帖子
    H
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 3
    • 帖子 8
    • 最佳 0
    • 有争议的 0
    • 群组 0

    haitang130 发布的帖子

    • 项目启动时报错 NoSuchMethodError: kotlinx.coroutines.DelayKt.delay-p9JZ4hM

      项目启动的时候会出现这个错误,但是不影响正常运行,是少什么东西吗

      2021-04-11 14:03:25 E/Net 3119503532: Exception in NetworkHandler
      java.lang.NoSuchMethodError: kotlinx.coroutines.DelayKt.delay-p9JZ4hM(DLkotlin/coroutines/Continuation;)Ljava/lang/Object;
      	at net.mamoe.mirai.internal.network.handler.QQAndroidBotNetworkHandler$closeEverythingAndRelogin$11.invokeSuspend(QQAndroidBotNetworkHandler.kt:275)
      	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
      	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
      	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
      	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
      	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
      	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
      

      Jar版本

              <dependency>
                  <groupId>net.mamoe</groupId>
                  <artifactId>mirai-core-jvm</artifactId>
                  <version>2.5.2</version>
              </dependency>
      
      发布在 开发交流
      H
      haitang130
    • RE: 账号无法登录, 提示当前上网环境异常

      @karlatemp 使用手动滑块验证码 已经解决 感谢

      发布在 开发交流
      H
      haitang130
    • RE: 账号无法登录, 提示当前上网环境异常

      实现代码

      Bot bot = BotFactory.INSTANCE.newBot(username, password, new BotConfiguration() {
                  {
                      fileBasedDeviceInfo("device.json");
                      setProtocol(MiraiProtocol.ANDROID_PAD);
                  }
              });
      
              // 注册
              bot.login();
      
              // 启动
              bot.join();
      
      发布在 开发交流
      H
      haitang130
    • RE: 账号无法登录, 提示当前上网环境异常

      大佬,这个问题应该如何解决

      发布在 开发交流
      H
      haitang130
    • 账号无法登录, 提示当前上网环境异常

      所有账号均无法正常登录

      jar版本

              <dependency>
                  <groupId>net.mamoe</groupId>
                  <artifactId>mirai-core-jvm</artifactId>
                  <version>2.5.0</version>
              </dependency>
              <dependency>
                  <groupId>org.jetbrains.kotlin</groupId>
                  <artifactId>kotlin-stdlib-jdk8</artifactId>
                  <version>1.4.31</version>
              </dependency>
      

      MiraiProtocol.ANDROID_PHONE 模式出现

      Mirai 无法完成滑块验证. 使用协议 ANDROID_PHONE 强制要求滑块验证, 请更换协议后重试. 
      

      MiraiProtocol.ANDROID_PAD模式出现

      Error(title=禁止登录, message=当前上网环境异常,请更换网络环境或在常用设备上登录或稍后再试。, errorInfo=)
      
      发布在 开发交流
      H
      haitang130
    • 1 / 1