Bot启动失败 先是ecdh key什么什么问题,然后是NoSuchMethod
-
2021-12-04 15:46:01 I/Net 212746897: ECDH key is invalid, start to fetch ecdh public key from server.
2021-12-04 15:46:01 E/Net 212746897: Failed to fetch ECDH public key from server, using default key insteadkotlinx.coroutines.channels.Channel.trySend-JP2dKIU
两个问题如上
-
mirai-core-jvm 2.8.2
kotlin.version 1.5.10 -
可能是网络问题
-
@rainchan 感谢回复,能否告知一下服务器地址,我再试试
-
已解决,参考了某位兄弟的pom。就挺玄幻的。
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
<version>1.5.0</version>
</dependency>