"Premature end of Content-Length delimited message body" 构建 Minecraft Forge 1.17.1 MDK 时出错

"Premature end of Content-Length delimited message body" error when building Minecraft Forge 1.17.1 MDK

错误报告:

A problem occurred configuring root project 'forge-1.17.1-37.0.53-mdk'.
> Could not resolve all files for configuration ':_compileJava_1'.
   > Could not download icu4j-66.1.jar (com.ibm.icu:icu4j:66.1)
      > Could not get resource 'https://maven.minecraftforge.net/com/ibm/icu/icu4j/66.1/icu4j-66.1.jar'.
         > Premature end of Content-Length delimited message body (expected: 12,935,630; received: 6,041,008)
   > Could not download fastutil-8.2.1.jar (it.unimi.dsi:fastutil:8.2.1)
      > Could not get resource 'https://maven.minecraftforge.net/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar'.
         > Premature end of Content-Length delimited message body (expected: 18,800,417; received: 3,661,296)

* 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.

我试了很多次,总是出现这个错误。

我的世界version:1.17.1 MinecraftForge version:1.17.1-37.0.53 Java version:1.16

我需要检查我的互联网连接吗?还是mavenhttps://maven.minecraftforge.net有问题? (我添加了镜像https://lss233.littleservice.cn/repositories/minecraft但是没有解决问题)

请帮帮我!

build.gradle这里

出现此问题的原因可能是以下提到的一个或多个问题:-

  1. 服务器端问题:很多时候,服务器变得无响应并且发送的数据较少或根本不发送数据。 4-5 小时后再试。有时,甚至需要一天的时间!
  2. "build.gradle" 文件有问题:如果您在任何时候都没有修改 build.gradle 文件,那么这不可能是 the/a 原因。

尝试导航到您的 MDK 文件夹和 运行 gradlew eclipse 命令。 请 post 您的 build.gradle 文件正确,它没有打开 :)。