好吧,我删了试试
sxaaaaaaaaaaaa 发布的帖子
-
RE: 【萌新求问】miral-api-http报java.lang.NoSuchMethodError错误怎么办
@asyfish 版本匹配上了,现在在研究python接mah,群组发送的功能老实现不了
-
RE: 【萌新求问】miral-api-http报java.lang.NoSuchMethodError错误怎么办
解决了又来了aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://localhost:8080/auth')
-
RE: 【萌新求问】miral-api-http报java.lang.NoSuchMethodError错误怎么办
降低mirai-api-http版本解决了,但是又有新报错 cannot import name 'BaseDispatcher'
-
【萌新求问】miral-api-http报java.lang.NoSuchMethodError错误怎么办
如题
2021-07-25 03:50:41 E/Mirai HTTP API: java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.toDuration(int, java.util.concurrent.TimeUnit)'
java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.toDuration(int, java.util.concurrent.TimeUnit)'
at net.mamoe.mirai.api.http.route.BaseRouteKt$mirai$2.invoke(BaseRoute.kt:48)
at net.mamoe.mirai.api.http.route.BaseRouteKt$mirai$2.invoke(BaseRoute.kt)
at io.ktor.features.CORS$Feature.install(CORS.kt:517)
at io.ktor.features.CORS$Feature.install(CORS.kt:509)
at io.ktor.application.ApplicationFeatureKt.install(ApplicationFeature.kt:68)
at net.mamoe.mirai.api.http.route.BaseRouteKt.mirai(BaseRoute.kt:45)
at net.mamoe.mirai.api.http.MiraiHttpAPIServer$start$2$1$1.invoke(MiraiHttpAPIServer.kt:93)
at net.mamoe.mirai.api.http.MiraiHttpAPIServer$start$2$1$1.invoke(MiraiHttpAPIServer.kt:29)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.instantiateAndConfigureApplication(ApplicationEngineEnvironmentReloading.kt:303)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.createApplication(ApplicationEngineEnvironmentReloading.kt:138)
at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:270)
at io.ktor.server.cio.CIOApplicationEngine$serverJob$1$1.invokeSuspend(CIOApplicationEngine.kt:53)
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)