1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

NeoForge 1.21.3 でデバッグしようとした時に躓いた話し

Last updated at Posted at 2024-10-31

開発時のNeoForgeのバージョンは下記の通りです。

gradle.properties
neogradle.subsystems.parchment.minecraftVersion=1.21
neogradle.subsystems.parchment.mappingsVersion=2024.07.28
minecraft_version=1.21.3
minecraft_version_range=[1.21.2,1.22)
neo_version=21.3.6-beta
neo_version_range=[21.3.6-beta,)
loader_version_range=[4,)

発生した事象

NeoForgeを用いてのMC1.21用に開発したModをMC1.21.3へ対応させた。
その後、Minecraft Clientを実行してデバッグすると下記のエラーが発生する。

Exception in thread "main" java.lang.IllegalStateException: Module named org.objectweb.asm.tree.analysis was already on the JVMs module path loaded from C:\Users\norio.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-analysis\9.7\e4a258b7eb96107106c0599f0061cfc1832fe07a\asm-analysis-9.7.jar but class-path contains it at location C:\Users\norio.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-analysis\9.5\490bacc77de7cbc0be1a30bb3471072d705be4a4\asm-analysis-9.5.jar

文面を見た感じ、asm-analysis-9.5.jarasm-analysis-9.7.jarが同時に読み込まれているためエラーになっていると思われる。

対処法

Gradleのバージョンを上げる
変更前

gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip

変更後

gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip

以上です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?