Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

[1.16.5] 构建失败 #544

Closed Agnes4m closed 2 years ago

Agnes4m commented 2 years ago

运行环境

Minecraft版本(1.16.5): 构建版本(从/version指令获取): 相关模组/插件:

描述这个BUG (如果有报错请附上pastebin链接或上传日志文件) 命令: ./gradlew

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'CatServer'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download fastutil-8.3.1.jar (it.unimi.dsi:fastutil:8.3.1)
      > Could not get resource 'https://maven.minecraftforge.net/it/unimi/dsi/fastutil/8.3.1/fastutil-8.3.1.jar'.
         > Premature end of Content-Length delimited message body (expected: 19,011,744; received: 5,712,952)

* 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 4m 27s
2 actionable tasks: 2 up-to-date

导致的问题r gradlew使用不了,无法构建

复现方法

ubuntu@VM-4-11-ubuntu:~/CatServer$ gradlew setup

Command 'gradlew' not found, did you mean:

  command 'gradle' from snap gradle (7.2)
  command 'gradle' from deb gradle (4.4.1-10)

See 'snap info <snapname>' for additional versions.

截图/视频 (如果没有可以忽略)

Kotori0629 commented 2 years ago

科学上网