MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. haitang130
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    haitang130

    @haitang130

    0
    Reputation
    5
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    haitang130 Unfollow Follow

    Latest posts made by 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>
      
      posted in 开发交流
      H
      haitang130
    • RE: 账号无法登录, 提示当前上网环境异常

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

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

      实现代码

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

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

      posted in 开发交流
      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=)
      
      posted in 开发交流
      H
      haitang130