Closed SNWCreations closed 7 months ago
Do you have any other plugins? Is this a multi project build?
No, I wanted to use shadow, but I know loom does not work well with shadow, so I disabled it. I have a buildSrc module in my project, and there is nothing else.
Can you run with --info and look for the following log lines:
(org.objectweb.asm.ClassVisitor) with version (9.5) was loaded from (/Users/user/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/9.5/dc6ea1875f4d64fbc85e1691c95b96a3d8569c90/asm-9.5.jar)
(org.objectweb.asm.tree.analysis.Analyzer) with version (9.5) was loaded from (/Users/user/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/9.5/490bacc77de7cbc0be1a30bb3471072d705be4a4/asm-analysis-9.5.jar)
(org.objectweb.asm.commons.ClassRemapper) with version (9.5) was loaded from (/Users/user/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-commons/9.5/19ab5b5800a3910d30d3a3e64fdb00fd0cb42de0/asm-commons-9.5.jar)
(org.objectweb.asm.tree.ClassNode) with version (9.5) was loaded from (/Users/user/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/9.5/fd33c8b6373abaa675be407082fdfda35021254a/asm-tree-9.5.jar)
(org.objectweb.asm.util.ASMifier) with version (9.5) was loaded from (/Users/user/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-util/9.5/64b5a1fc8c1b15ed2efd6a063e976bc8d3dc5ffe/asm-util-9.5.jar)
You should have ASM 9.5
Oh, the project loaded a shadowed version of ASM from my dependency, Gradle said the version of ASM is null. I'll try to make my dependency correct.
If you are going to shadow any library make sure to also repackage it. Glad you figured out the issue 👍
If you are going to shadow any library make sure to also repackage it. Glad you figured out the issue 👍
Ok, I know. Thanks for your help. :D
I cancelled my build by wrongly clicked the Stop button in my IntelliJ IDEA, but my environment got broken after I re-run the build task. I got this: `
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'TheTestLab'.
Try:
BUILD FAILED in 17s `
It seems to be an ASM issue, is the ASM version which is used by Loom outdated?
My environment: `
Gradle 8.5
Build time: 2023-11-29 14:08:57 UTC Revision: 28aca86a7180baa17117e0e5ba01d8ea9feca598
Kotlin: 1.9.20 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 17.0.1 (Alibaba 17.0.1+12) OS: Windows 7 6.1 amd64 `
Yes I am sure that the Java version is supported by ASM, maybe the argument wrong?