一直提示 mcl 已升级请重新启动
-
2.13很早就更新完了,今天重启了一下就启动不了了,每次进入都会卡在这
-
同问,插个眼这是我配置的时候的目录
-
啧,好消息,我解决了,参照这个
https://mirai.mamoe.net/topic/1653/升级-mirai-至-2-13-0-rc-rc2-使用新的短信验证方法解决设备验证具体为改这个文件:
config.json"maven_repo": [
"https://repo1.maven.org/maven2",
"https://maven.aliyun.com/repository/public"
],加一个新的源
编辑 packages
将
net.mamoe:mirai-console,
net.mamoe:mirai-console-terminal,
net.mamoe:mirai-core-all
中的 channel 从 stable 改为 maven"version": "2.13.0-RC2", 这个版本不用管,不一样没事,后面会自动更新。
运行情况
-
ok可以了,好像只要指令直接换就行了
-
卡在这是什么意思
他不是让你重启吗 -
https://github.com/iTXTech/mcl-addon/commit/d1ce0bc3dc7e73691d23a22863eb91a85c19c70d
新版本 错误的删除了 两个新连接
你可以手动加上
在config.json
的mavenRepo
-
@cssxsh 大佬我加上后会出现
E/MiraiNative: Exception in coroutine Plugin org.itxtech.mirainative of MiraiNative kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead at path: $
等一系列错误,我使用的是您的
mirai-native cssxsh编译修复版.zip -
-
@cssxsh 具体的内容是
E/MiraiNative: kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead at path: $ JSON input: kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead at path: $ JSON input: at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24) at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:528) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:526) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(AbstractJsonLexer.kt:224) at kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken(AbstractJsonLexer.kt:207) at kotlinx.serialization.json.internal.StringJsonLexer.consumeNextToken(StringJsonLexer.kt:76) at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(StreamingJsonDecoder.kt:47) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.Configuration$$serializer.deserialize(Configuration.kt:83) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.Configuration$$serializer.deserialize(Configuration.kt:83) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan$config$2.invoke(Configuration.kt:38) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan$config$2.invoke(Configuration.kt:36) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan.getConfig(Configuration.kt:36) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.ui.Tray.update$lambda$32$lambda$9$lbl$7(Tray.kt:109) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.ui.Tray.update(Tray.kt:110) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.ui.Tray.create(Tray.kt:57) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.MiraiNative.onEnable(MiraiNative.kt:167) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:131) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:305) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:175) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:336) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:508) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:177) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:176) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:54) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.itxtech.mcl.Utility.bootJars(Utility.java:86) at org.itxtech.mcl.Utility.bootJars(Utility.java:76) at org.itxtech.mcl.Utility.bootMirai(Utility.java:98) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:196) at org.itxtech.mcl.Loader.main(Loader.java:84) E/MiraiNative: Exception in coroutine Plugin org.itxtech.mirainative of MiraiNative kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead at path: $ JSON input: at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24) at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:528) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:526) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(AbstractJsonLexer.kt:224) at kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken(AbstractJsonLexer.kt:207) at kotlinx.serialization.json.internal.StringJsonLexer.consumeNextToken(StringJsonLexer.kt:76) at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(StreamingJsonDecoder.kt:47) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.Configuration$$serializer.deserialize(Configuration.kt:83) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.Configuration$$serializer.deserialize(Configuration.kt:83) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan$config$2.invoke(Configuration.kt:38) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan$config$2.invoke(Configuration.kt:36) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan.getConfig(Configuration.kt:36) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.bridge.NativeBridge.updateInfo(NativeBridge.kt:84) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.manager.PluginManager.loadPlugin(PluginManager.kt:136) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.manager.PluginManager$readPlugin$2.invokeSuspend(PluginManager.kt:103) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) E/MiraiNative: Exception in coroutine Plugin org.itxtech.mirainative of MiraiNative kotlinx.serialization.json.internal.JsonDecodingException: Expected start of the object '{', but had 'EOF' instead at path: $ JSON input: at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24) at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:528) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:526) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(AbstractJsonLexer.kt:224) at kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken(AbstractJsonLexer.kt:207) at kotlinx.serialization.json.internal.StringJsonLexer.consumeNextToken(StringJsonLexer.kt:76) at kotlinx.serialization.json.internal.StreamingJsonDecoder.beginStructure(StreamingJsonDecoder.kt:47) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.Configuration$$serializer.deserialize(Configuration.kt:83) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.Configuration$$serializer.deserialize(Configuration.kt:83) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan$config$2.invoke(Configuration.kt:38) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan$config$2.invoke(Configuration.kt:36) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.util.ConfigMan.getConfig(Configuration.kt:36) at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.MiraiNative$onEnable$3.invokeSuspend(MiraiNative.kt:185) 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:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
-
@Darkgreen-DM
我说的是 和 mcl.jar 的 config.json 阿
你去改 mirai-native 的 config.json 干嘛 -
@cssxsh 我更改的确实是mcl的config.json,和之前手动升级2.13.0时改的是同一个。
{ "module_packages": [ "mcl:org.itxtech.mcl.module.builtin" ], "mirai_repo": "https://repo.mirai.mamoe.net/keep/mcl", "maven_repo": [ "https://repo.huaweicloud.com/repository/maven", "https://repo1.maven.org/maven2", "https://maven.aliyun.com/repository/public" ], "packages": { "net.mamoe:mirai-console": { "channel": "maven-stable", "version": "2.13.0", "type": "libs", "versionLocked": false }, "net.mamoe:mirai-console-terminal": { "channel": "maven-stable", "version": "2.13.0", "type": "libs", "versionLocked": false }, "net.mamoe:mirai-core-all": { "channel": "maven-stable", "version": "2.13.0", "type": "libs", "versionLocked": false }, "org.itxtech:mcl-addon": { "channel": "maven-stable", "version": "2.1.0", "type": "plugins", "versionLocked": false }, "org.bouncycastle:bcprov-jdk15on": { "channel": "stable", "version": "1.64", "type": "libs", "versionLocked": false } }, "archiveSuffix": [ ".zip", ".mirai2.jar", ".mirai.jar", "-all.jar", ".jar" ], "disabled_modules": [], "proxy": "", "log_level": 1, "modules_props": {} }
-
那就是 mirai-native 的 config.json 有问题了,你自己看看
-
@Darkgreen-DM
mirai-native 的 config 在data/org.itxtech.mirainative/config.json
-
@cssxsh 我的这个json文件过去一直是空白的。
-
@cssxsh 好的,我尝试删除了mirai-native的空白config,启动后mcl的config重新生成了,再次修改之后问题解决。感谢帮助。