Minecraft 无法在 Ubuntu 上运行

Minecraft 无法在 Ubuntu 上运行

一周前,我在 Ubuntu 14.04 上使用 Java 1.8 完美运行 Minecraft。现在 Minecraft 无法启动。我搜索并尝试了很多方法。这是安装了 1.8 的启动器日志

Getting syncinfo for selected version
Queueing library & version downloads
Unhandled exception in thread Thread[pool-2-thread-2,5,main]
com.google.gson.JsonSyntaxException: duplicate key: null
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:191) ~[Minecraft.jar:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:146) ~[Minecraft.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93) ~[Minecraft.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172) ~[Minecraft.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:795) ~[Minecraft.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:761) ~[Minecraft.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:710) ~[Minecraft.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:682) ~[Minecraft.jar:?]
at net.minecraft.launcher.updater.RemoteVersionList.getCompleteVersion(RemoteVersionList.java:32) ~[launcher.jar:1.6.89-j]
at net.minecraft.launcher.updater.MinecraftVersionManager.getLatestCompleteVersion(MinecraftVersionManager.java:213) ~[launcher.jar:1.6.89-j]
at net.minecraft.launcher.updater.MinecraftVersionManager.getLatestCompleteVersion(MinecraftVersionManager.java:37) ~[launcher.jar:1.6.89-j]
at com.mojang.launcher.game.runner.AbstractGameRunner.playGame(AbstractGameRunner.java:67) ~[launcher.jar:1.6.89-j]
at net.minecraft.launcher.game.GameLaunchDispatcher$1.run(GameLaunchDispatcher.java:111) ~[launcher.jar:1.6.89-j]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

我还尝试了官方网站上的新 Minecraft.deb 启动器,它安装了 Java 1.12,但它也无法启动,启动器日志输出也类似。似乎一切都告诉我要安装 1.8,我相信我已经成功安装了,但 Minecraft 却没有成功。有什么建议吗?谢谢。

答案1

您的某个 JSON 文件中有一个重复的键,例如如下所示:

{
  "foo": 1,
  "bar": 2,
  "foo": 3
}

相关内容