使用FledgeXu帖子的离线1.14forge下载包出现错误。

jia


版本信息
IDE:Eclipse
IDE版本:4.14.0
Forge版本: 1.14.4-28.2.3
Minecraft版本: 1.14.4
错误情况简述
在下载完后的压缩包选择解压的地方进入DOS界面输入gradlew eclipse genEclipseRuns,回车之后
出现BUILD FAILED。
有将下载后解压的文件中的gradlehome里的内容剪切放到C:\Users\jia.gradle
打开DOS界面的文件夹路径是C:\Users\jia\Desktop\yuan\build

出错的DOS界面

    Microsoft Windows [版本 10.0.18363.778]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\jia\Desktop\yuan\build>gradlew eclipse genEclipseRuns
Picked up _JAVA_OPTIONS: -Xmx4096m
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'build'.
> Could not resolve all files for configuration ':_compileJava_1'.
   > Could not download vecmath.jar (java3d:vecmath:1.5.2)
      > Could not get resource 'https://libraries.minecraft.net/java3d/vecmath/1.5.2/vecmath-1.5.2.jar'.
         > Could not HEAD 'https://libraries.minecraft.net/java3d/vecmath/1.5.2/vecmath-1.5.2.jar'.
            > Connect to libraries.minecraft.net:443 [libraries.minecraft.net/54.192.77.146] failed: Connection timed out: connect
   > Could not download authlib.jar (com.mojang:authlib:1.5.25)
      > Could not get resource 'https://libraries.minecraft.net/com/mojang/authlib/1.5.25/authlib-1.5.25.jar'.
         > Could not HEAD 'https://libraries.minecraft.net/com/mojang/authlib/1.5.25/authlib-1.5.25.jar'.
            > Connect to libraries.minecraft.net:443 [libraries.minecraft.net/54.192.77.146] failed: Connection timed out: connect
   > Could not download text2speech-natives-windows.jar (com.mojang:text2speech:1.11.3)
      > Could not get resource 'https://libraries.minecraft.net/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-windows.jar'.
         > Could not HEAD 'https://libraries.minecraft.net/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-windows.jar'.
            > Connect to libraries.minecraft.net:443 [libraries.minecraft.net/54.192.77.146] failed: Read timed out
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.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 40s



单纯的网络问题吧


FledgeXu


看起来是网络问题。
离线包不起作用可能是因为,离线包和MDK版本不对。
我给你打包一个28.2.3版本的离线包,你下载试试。


jia


万分感谢


jia


这个是吧里下载的离线包,事实上我已经被困在网络问题里有几个礼拜了。


FledgeXu


稍微等一下,现在还在构建。
请注意,新用户的回帖数是有限制的。


jia


好的,谢谢。问一下,你要用什么方式传递给我


FledgeXu



jia


我看到了你在github上新发布的内容。万分感谢。我会马上去尝试


FledgeXu


28.2.3 版本的离线包已经打包好了。


具体用法请看之前的帖子,在复制并修改gradlehome之前,你可以把之前的.gradle删了。
我不能保证离线包有效,这种网络问题引起的配置失败,最好还是买一个翻墙服务来解决问题,你可以去搜索看看CN2线路的翻墙服务。

FledgeXu


问题解决了,记得选一个楼层作为答案。


jia


请问还有什么方式可以联系到你呢。我依旧遇到同样的问题。我用的Java版本是jdk1.8.0_251。
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.


jia


或许是我在DOS界面输入的代码不正确。我输入了gradlew eclipse genEclipseRuns


FledgeXu


你应该先输入:

.\gradlew eclipse

然后再输入

.\gradlew genEclipseRuns

这个警告无视它。

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.

jia


这是我在输入.\gradlew eclipse时遇到的错误

    C:\Users\jia\Desktop\onemod\003\build>.\gradlew eclipse
Picked up _JAVA_OPTIONS: -Xmx4096m
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'build'.
> Could not resolve all files for configuration ':_compileJava_1'.
   > Could not download oshi-core.jar (oshi-project:oshi-core:1.1)
      > Could not get resource 'https://libraries.minecraft.net/oshi-project/oshi-core/1.1/oshi-core-1.1.jar'.
         > Could not HEAD 'https://libraries.minecraft.net/oshi-project/oshi-core/1.1/oshi-core-1.1.jar'.
            > Connect to libraries.minecraft.net:443 [libraries.minecraft.net/99.86.130.78] failed: Connection timed out: connect

* 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.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 33s

FledgeXu


典型的网络问题,没有办法,中国大陆的网络封锁和对国际流量的限制导致的。
只有多尝试,要不就是买代理,然后给Gradle配置代理。

看起来在你的电脑上离线包没有起效,很奇怪。
你是不是修改过MDK里文件的内容了……如果修改过,请重新解压MDK,然后不要修改里面任何内容,直接运行命令。

再检查看看你的离线包是不是放错位置了


jia


。。。。。难道mdk使用的不是你GITHUB里的吗,或者说那个并不是我应该使用的mdk。。。


FledgeXu


你可以直接用离线包里自带的MDK,也可以用Forge官网上下载的MDK。
无所谓,这两个是一样的。
总而言之,这是网络造成的问题,你在论坛里随便翻翻,可以找到非常多相同的例子。
我觉得你的离线包的gradlehome可能放错位置了,你应该放在%homepath%(直接在文件管理器输入这个带百分号的地址)这个目录下面。


FledgeXu


写程序,不被大陆的网络折磨一两次是学不会翻墙的重要性的。
一个好的翻墙服务商(比如有CN2线路的服务商)能解决大半问题。


vvvbbbcz


你不用输入“gradlew eclipse”,直接输入“gradlew genEclipseRuns”即可。
至于为什么,你可以去看MDK包里的README.txt文件。


只要不是1.12.2或以下版本,照着README.txt说的做是完全没问题的


jia


:joy: :rofl: :joy: :rofl: :joy: :rofl: :joy: :rofl: :joy: :rofl:终于,半个月了。终于啊。


jia


你好,你可以说一下你用的是什么vpn或者CN2线路服务吗


system


该主题在最后一个回复创建后7天后自动关闭。不再允许新的回复。