运行环境和Mirai Native不兼容,java小白求助
-
2023-06-18 21:34:48 I/main: Starting mirai-console...
2023-06-18 21:34:48 I/main:===============================[ Mirai console 2.15.0-dev-98 ]================================
| \ / \ \ | / \ |
| ▓▓\ / ▓▓\▓▓ ______ ______ \▓▓ ▓▓▓▓▓▓\ ______ _______ _______ ______ | ▓▓ ______
| ▓▓▓\ / ▓▓▓ / \ | | \ ▓▓ \▓▓/ | \ / / | ▓▓/
| ▓▓▓▓\ ▓▓▓▓ ▓▓ ▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓ ▓▓ | ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ ▓▓▓▓▓▓
| ▓▓\▓▓ ▓▓ ▓▓ ▓▓ ▓▓ \▓▓/ ▓▓ ▓▓ ▓▓ | ▓▓ | ▓▓ ▓▓ | ▓▓\▓▓ | ▓▓ | ▓▓ ▓ ▓ ▓▓ ▓▓
| ▓▓ \▓▓▓| ▓▓ ▓▓ ▓▓ | ▓▓▓▓▓▓▓ ▓▓ ▓▓/ \ ▓▓__/ ▓▓ ▓▓ | ▓▓_\▓▓▓▓▓▓\ ▓▓__/ ▓▓ ▓▓ ▓▓▓▓▓▓▓▓
| ▓▓ \▓ | ▓▓ ▓▓ ▓▓ \▓▓ ▓▓ ▓▓\▓▓ ▓▓\▓▓ ▓▓ ▓▓ | ▓▓ ▓▓\▓▓ ▓▓ ▓▓\▓▓
\▓▓ \▓▓\▓▓\▓▓ \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓\▓▓▓▓▓▓▓ \▓▓ ▓▓▓▓ \▓▓ \▓▓▓▓▓▓▓2023-06-18 21:34:48 I/main: Backend: version 2.15.0-dev-98, built on 2023-06-04 07:47:48.
2023-06-18 21:34:48 I/main: Frontend Terminal: version 2.15.0-dev-98, provided by Mamoe Technologies
2023-06-18 21:34:48 I/main: Welcome to visit https://mirai.mamoe.net/
2023-06-18 21:34:50 I/fix-protocol-version: 协议版本检查更新...
2023-06-18 21:35:29 I/fix-protocol-version: 注册服务...
2023-06-18 21:35:29 I/plugin: Successfully loaded plugin fix-protocol-version v1.7.1
2023-06-18 21:35:29 W/MiraiNative: 当前运行环境 64 可能不与 Mirai Native 兼容,推荐使用 32位 JRE 运行 Mirai Native。
2023-06-18 21:35:29 W/MiraiNative: 如果您正在开发或调试其他环境下的 Mirai Native,请忽略此警告。
2023-06-18 21:35:29 I/plugin: Successfully loaded plugin MiraiNative v2.0.0-cssxsh
2023-06-18 21:35:29 I/plugin: Successfully loaded plugin MCL Addon v2.1.1
2023-06-18 21:35:30 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2023-06-18 21:35:30 I/fix-protocol-version: 当前各协议版本日期:
ANDROID_PHONE 8.9.58.11170 2023-05-19T11:35+08:00
ANDROID_PAD 8.8.88.7083 2022-03-23T11:01:55+08:00
ANDROID_WATCH 2.0.8 2019-06-03T20:25:31+08:00
IPAD 8.9.33.614 2021-12-31T11:36:26+08:00
MACOS 6.7.9 1970-01-01T08:00+08:002023-06-18 21:35:30 I/MiraiNative: 正在加载 Mirai Native Bridge C:\Users\Administrator\Desktop\00\data\org.itxtech.mirainative\CQP.dll
2023-06-18 21:35:30 E/MiraiNative: java.lang.UnsatisfiedLinkError: C:\Users\Administrator\Desktop\00\data\org.itxtech.mirainative\CQP.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
java.lang.UnsatisfiedLinkError: C:\Users\Administrator\Desktop\00\data\org.itxtech.mirainative\CQP.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.manager.LibraryManager.load(LibraryManager.kt:33)
at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.MiraiNative.checkNativeLibs(MiraiNative.kt:86)
at mirai-native-2.0.0.mirai2.jar//org.itxtech.mirainative.MiraiNative.onEnable(MiraiNative.kt:170)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:237)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:308)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:39)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:54)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:181)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:359)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:512)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:182)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:181)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:59)2023-06-18 21:35:30 E/MCL Addon: Mirai Console 并未通过 iTXTech Mirai Console Loader 加载。
2023-06-18 21:35:30 E/MCL Addon: 请访问 https://github.com/iTXTech/mirai-console-loader
2023-06-18 21:35:30 I/main: 2 plugin(s) enabled.
2023-06-18 21:35:30 I/main: mirai-console started successfully.代码如上所示,求大佬帮助,用的JAVA17!
-
请问dev版本在哪里下载啊
-
访问https://adoptium.net/zh-CN/temurin/releases/
系统选Windows,硬件架构选X86,JDK或JRE均可 -
@milimoe 访问 https://repo.mirai.mamoe.net/snapshots/net/mamoe/mirai-core-jvm/2.15.0-dev-98
下载 mirai-core-jvm-2.15.0-dev-98.jar
访问 https://repo.mirai.mamoe.net/snapshots/net/mamoe/mirai-core-api-jvm/2.15.0-dev-98
下载 mirai-core-api-jvm-2.15.0-dev-98.jar
访问 https://repo.mirai.mamoe.net/snapshots/net/mamoe/mirai-core-utils-jvm/2.15.0-dev-98
下载 mirai-core-utils-jvm-2.15.0-dev-98.jar
访问 https://repo.mirai.mamoe.net/snapshots/net/mamoe/mirai-console/2.15.0-dev-98
下载 mirai-console-2.15.0-dev-98-all.jar
下载好后,按照如下步骤操作:首先删除 mirai-console 根目录下的 libs 目录的所有文件。
打开 config.json,将 net.mamoe:mirai-core-all,net.mamoe:mirai-console-terminal 和 net.mamoe:mirai-console 的版本改为 2.15.0-M1。
启动一次 mirai-console-loader,等待其下载库文件。
下载完成后(即已经出现 mirai 的 logo)立刻强制关闭 mirai-console-loader。
将在 snapshot 仓库下载好的 jar 放入 libs 目录中。
删除所有的 sha1 文件。
删除原先的 mirai-console-2.15.0-M1-all.jar 文件。
用任何压缩软件(如 Bandizip)打开原先的 mirai-core-all-2.15.0-M1-all.jar,删除其中的 net/mamoe/mirai 包文件夹。
操作完成后,libs 中的内容应该和如下图片相同:删除 bots 下的登录缓存。
通过以下方式启动:
java -D"file.encoding=utf-8" -cp "./libs/*" net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader需要注意的是,Mirai版本不是越新越好,预发布版本可能存在大量问题,所以非必要就别更新到Dev版
-
-
@起舞弄清影 好的!!!非常感谢!!已经可以登录了!
-
@起舞弄清影 谢谢您!!