我尝试运行 gradlew genSource

问题描述

C:\Users\boeec\OneDrive\Desktop\MC Modding\krypton>gradlew genSource

FAILURE: Build Failed with an exception.

* Where:
Build file 'C:\Users\boeec\OneDrive\Desktop\MC Modding\krypton\build.gradle' line: 2

* What went wrong:
An exception occurred applying plugin request [id: 'fabric-loom',version: '0.8-SNAPSHOT']
> Failed to apply plugin 'fabric-loom'.
   > You are using an outdated version of Java (8). Java 16 or higher is required.
     The JAVA_HOME environment variable is currently set to (C:\Program Files\AdoptOpenJDK\jdk-8.0.292.10-hotspot\).

* 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

BUILD Failed in 706ms

编辑:新错误

Starting a Gradle Daemon,4 incompatible Daemons Could not be reused,use --status for details

> Configure project :
Fabric Loom: 0.8.21

> Task :genSources Failed

FAILURE: Build Failed with an exception.

* What went wrong:
Execution Failed for task ':genSources'.
> java.nio.file.filesystemexception: C:\Users\boeec\.gradle\caches\fabric-loom\1.16.4-mapped-net.fabricmc.yarn-1.16.4+build.9-v2\minecraft-1.16.4-mapped-net.fabricmc.yarn-1.16.4+build.9-v2.jar: Der Prozess kann nicht auf die Datei z
ugreifen,da sie von einem anderen Prozess verwendet wird

* 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

BUILD Failed in 36s
1 actionable task: 1 executed

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...