MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

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

    开发交流
    3
    3
    131
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      haitang130 last edited by Him188

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

      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>
      
      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        我觉得可能会kotlin新版本的部分行为有关系
        具体可以问一下@Him188

        1 Reply Last reply Reply Quote 0
        • Him188
          Him188 last edited by Him188

          是 Kotlin 新版本问题, 你依赖了某个库, 它的依赖与 mirai 不同就导致了冲突

          gh#1084

          Him188 created this issue in mamoe/mirai

          closed Embeddable JAR artifacts #1084

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact