我试图设置我的改装环境,当我做“gradlew setupDecompWorkSpace”时,发生了这种情况:
WARNING: You are using an unsupported version of ForgeGradle.
Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.
See https://gist.github.com/TheCurle/fe7ad3ede188cbdd15c235cc75d52d4a for more info on contributing.
#################################################
ForgeGradle 1.2.2-g2ea0336
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:extractMcpData UP-TO-DATE
:getVersionJson
Unexpected reponse 403 from http://s3.amazonaws.com/Minecraft.Download/versions/1.7.10/1.7.10.json
:extractUserDev UP-TO-DATE
:genSrgs SKIPPED
:extractNatives UP-TO-DATE
:getAssetsIndex
Unexpected reponse 403 from https://s3.amazonaws.com/Minecraft.Download/indexes/1.7.10.json
:getAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':getAssets'.
> 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.
BUILD FAILED
Total time: 4.862 secs
C:\Users\Dimitri\eclipse-workspace\forge-1.7.10-10.13.4.1614-1.7.10-src>
我尝试将gradle版本更改为gradle-wrapper.properties从2.0到2.6,只是持续时间更长。
我不是这方面的专业人士,但当我遇到这个问题时,我的解决方法是用anatawa 12的叉子替换forge gradle。我认为发生的是一些网址在其中一个forge更新中发生了变化,而forge 1.7.10没有被考虑在内。
新Gradle:https://github.com/anatawa12/ForgeGradle-1.2
如何修复问题方法1:
>
关注:https://github.com/anatawa12/ForgeGradle-example#how-to-replace-forgegradle-12-with-anatawa12s-fork
编辑Gradle wrapper以使用gradle 4.4.1或更高版本。
如何修复问题方法2:
下载并使用anatawa12的示例gradle模板(cmd命令相同):< br > https://github . com/anata wa 12/forgegrad le-example/archive/master . zip