首页 > 解决方案 > Minecraft Forge - gradlew - 无效的修补程序依赖

问题描述

我正在尝试为 Minecraft 创建我的第一个 mod,当我尝试命令“gradlew genIntelij Runs”时遇到问题。我一直在尝试更改系统变量,但我不确定我在做什么。请你帮助我好吗?

Daemon will be stopped at the end of the build stopping after processing

> Configure project :
Java: 1.8.0_301 JVM: 25.301-b09(Oracle Corporation) Arch: amd64
New Dep: net.minecraftforge:forge:1.16.3-34.1.42_mapped_snapshot_20201028-1.16.3

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Tutorial'.
> Invalid patcher dependency: net.minecraftforge:forge:1.16.3-34.1.42:userdev

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s 

标签: minecraft-forge

解决方案


Invalid patcher dependency: net.minecraftforge:forge:1.16.3-34.1.42:userdev,很可能,您的依赖项没有正确安装。清除您的 gradle 缓存并运行命令gradlew eclipse以再次解决所有依赖项,您的问题应该得到解决。

我还建议升级到 1.16.5 或 1.17.1,因为您可以获得更好的帮助和补丁。


推荐阅读