Cmd中的Gradle失败:FAILURE:构建因异常而失败

时间:2018-06-01 19:35:41

标签: java gradle minecraft-forge

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\larie\Desktop\Forge 1.7.10\build.gradle' line: 18

* What went wrong:
A problem occurred evaluating root project 'Forge 1.7.10'.
> Failed to apply plugin [id 'forge']
   > You must set the Minecraft Version!
      > java.lang.NullPointerException (no error message)

* 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.
See https://docs.gradle.org/4.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 45s

当我在控制台(Cmd)中运行时显示:

C:\Gradle\gradle-4.7\bin\gradle wrapper --gradle-version 4.7

cmd中的路径位于我的项目中。

如果我理解错误,我必须定义一个版本的Minecraft,但我不知道在哪里定义它。

0 个答案:

没有答案