2.6.3升2.13.0找不到类
-
为了解决过低版本QQ无法登录问题今天升了2.13.0 升完后运行报错
java.util.ServiceConfigurationError: net.mamoe.mirai.IMirai: Provider net.mamoe.mirai.internal.MiraiImpl could not be instantiated Caused by: java.lang.NoClassDefFoundError: net/mamoe/mirai/internal/deps/io/ktor/client/engine/okhttp/OkHttp Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.internal.deps.io.ktor.client.engine.okhttp.OkHttp
后来单独引入了ktor依赖但是类路径不对 mirai的ktor路径是net/mamoe/mirai/internal/deps/io/ktor/??
但是mirai-core-utils里的net\mamoe\mirai\internal\deps\io\ktor下只有一个\utils没有\client(是我少包了吗附上deps:
dependencies { implementation group: 'net.mamoe', name: 'mirai-core', version: '2.13.0' implementation group: 'net.mamoe', name: 'mirai-core-utils', version: '2.13.0' implementation group: 'net.mamoe', name: 'mirai-core-api', version: '2.13.0' }
-
2.13.0 有bug 未修复
请暂时降低版本到 2.13.0-RC2