Error: Support for running under Java 16 requires Gradle 7, which will be supported in ForgeGradle 5
Error: Support for running under Java 16 requires Gradle 7, which will be supported in ForgeGradle 5
我正在使用这个 -> https://mcforge.readthedocs.io/en/latest/gettingstarted/
(伪造文档)
现在我在这一点上:
Generating IDE Launch/Run Configurations:
For IntelliJ, run the genIntellijRuns gradle task (gradlew genIntellijRuns).
这就是我所拥有的:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\T\Desktop\mods\Dcraft\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project 'Dcraft'.
> Failed to apply plugin 'net.minecraftforge.gradle'.
> Found java version 17.0.1. Versions 16 and newer are not supported yet.
Note: Support for running under Java 16 requires Gradle 7, which will be supported in ForgeGradle 5.
build.gradle 中的第 10 行:
apply plugin: 'net.minecraftforge.gradle'
我已经尝试 google 寻找解决方案并下载 jdk 15.0.2,但它没有帮助...
我认为 ForgeGradle 5 会对我有所帮助,但我不知道如何安装它。
请帮我解决这个问题。
PS。我有最新版本 java、jdk 17.0.1、gradle 7 和 forge mdk 1.16.5-36.1.20
我将 jdk 版本降级到 15.0.2,这有助于解决问题。
我正在使用这个 -> https://mcforge.readthedocs.io/en/latest/gettingstarted/ (伪造文档)
现在我在这一点上:
Generating IDE Launch/Run Configurations:
For IntelliJ, run the genIntellijRuns gradle task (gradlew genIntellijRuns).
这就是我所拥有的:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\T\Desktop\mods\Dcraft\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project 'Dcraft'.
> Failed to apply plugin 'net.minecraftforge.gradle'.
> Found java version 17.0.1. Versions 16 and newer are not supported yet.
Note: Support for running under Java 16 requires Gradle 7, which will be supported in ForgeGradle 5.
build.gradle 中的第 10 行:
apply plugin: 'net.minecraftforge.gradle'
我已经尝试 google 寻找解决方案并下载 jdk 15.0.2,但它没有帮助... 我认为 ForgeGradle 5 会对我有所帮助,但我不知道如何安装它。 请帮我解决这个问题。
PS。我有最新版本 java、jdk 17.0.1、gradle 7 和 forge mdk 1.16.5-36.1.20
我将 jdk 版本降级到 15.0.2,这有助于解决问题。