开发环境搭建forge-1.15.2-31.2.0-mdk出现问题

周庸生


版本信息
你使用的系统:win10 64位
你用的JDK是: 1.8.0
你使用的IDE:IDEA
你使用的IDE版本: 2017.3
Forge版本: forge-1.15.2-31.2.0-mdk
Minecraft版本: 1.15

出错图



错误情况简述
用的 ForgeGradleCN 和shadowsocket代理,看过Forge开发环境配置失败这篇帖子,把网易版的我的世界assets/objects目录都删除了build还是失败后,把它卸载了,并把环境配置数据都删除了,也还是不行。
报错日志


2020-11-21 11:43:56,306 [5508680]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from D:/java/jdk1.8.0_201 
2020-11-21 11:43:56,312 [5508686]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from D:/java/jdk1.8.0_201 
2020-11-21 11:44:02,942 [5515316]   WARN - nal.AbstractExternalSystemTask - Failed to get asset: minecraft/lang/br_fr.json
Failed to get asset: minecraft/lang/de_ch.json
Failed to get asset: minecraft/lang/es_cl.json
Failed to get asset: minecraft/lang/kab_kab.json
Failed to get asset: minecraft/lang/eu_es.json
Failed to get asset: minecraft/lang/sl_si.json
Failed to get asset: minecraft/lang/gv_im.json
Failed to get asset: minecraft/lang/mt_mt.json
Failed to get asset: minecraft/lang/sv_se.json
Failed to get asset: minecraft/lang/tlh_aa.json
Failed to get asset: minecraft/lang/gd_gb.json
Failed to get asset: minecraft/lang/is_is.json
Failed to get asset: minecraft/lang/vec_it.json
Failed to get asset: minecraft/lang/swg.json
Failed to get asset: minecraft/lang/he_il.json
Failed to get asset: realms/lang/be_by.json
Failed to get asset: realms/lang/ka_ge.json
Failed to get asset: realms/lang/hy_am.json
Failed to get asset: realms/lang/yi_de.json
Failed to get asset: realms/lang/ta_in.json
Some assets failed to download or validate, try running the task again. 
com.intellij.openapi.externalSystem.model.ExternalSystemException: Failed to get asset: minecraft/lang/br_fr.json
Failed to get asset: minecraft/lang/de_ch.json
Failed to get asset: minecraft/lang/es_cl.json
Failed to get asset: minecraft/lang/kab_kab.json
Failed to get asset: minecraft/lang/eu_es.json
Failed to get asset: minecraft/lang/sl_si.json
Failed to get asset: minecraft/lang/gv_im.json
Failed to get asset: minecraft/lang/mt_mt.json
Failed to get asset: minecraft/lang/sv_se.json
Failed to get asset: minecraft/lang/tlh_aa.json
Failed to get asset: minecraft/lang/gd_gb.json
Failed to get asset: minecraft/lang/is_is.json
Failed to get asset: minecraft/lang/vec_it.json
Failed to get asset: minecraft/lang/swg.json
Failed to get asset: minecraft/lang/he_il.json
Failed to get asset: realms/lang/be_by.json
Failed to get asset: realms/lang/ka_ge.json
Failed to get asset: realms/lang/hy_am.json
Failed to get asset: realms/lang/yi_de.json
Failed to get asset: realms/lang/ta_in.json
Some assets failed to download or validate, try running the task again.
	at com.android.tools.idea.gradle.project.sync.idea.ProjectImportErrorHandler.getUserFriendlyError(ProjectImportErrorHandler.java:86)
	at com.android.tools.idea.gradle.project.sync.idea.AndroidGradleProjectResolver.getUserFriendlyError(AndroidGradleProjectResolver.java:364)
	at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:158)
	at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:158)
	at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:158)
	at org.jetbrains.plugins.gradle.service.task.GradleTaskManager.lambda$executeTasks$0(GradleTaskManager.java:124)
	at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute(GradleExecutionHelper.java:210)
	at org.jetbrains.plugins.gradle.service.task.GradleTaskManager.executeTasks(GradleTaskManager.java:127)
	at org.jetbrains.plugins.gradle.service.task.GradleTaskManager.executeTasks(GradleTaskManager.java:57)
	at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemTaskManagerImpl.a(RemoteExternalSystemTaskManagerImpl.java:48)
	at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
	at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemTaskManagerImpl.executeTasks(RemoteExternalSystemTaskManagerImpl.java:47)
	at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemTaskManagerWrapper.executeTasks(ExternalSystemTaskManagerWrapper.java:52)
	at com.intellij.openapi.externalSystem.service.internal.ExternalSystemExecuteTaskTask.doExecute(ExternalSystemExecuteTaskTask.java:171)
	at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:163)
	at com.intellij.openapi.externalSystem.service.execution.ExternalSystemRunConfiguration$MyRunnableState.a(ExternalSystemRunConfiguration.java:419)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Failed to get asset: minecraft/lang/br_fr.json
Failed to get asset: minecraft/lang/de_ch.json
Failed to get asset: minecraft/lang/es_cl.json
Failed to get asset: minecraft/lang/kab_kab.json
Failed to get asset: minecraft/lang/eu_es.json
Failed to get asset: minecraft/lang/sl_si.json
Failed to get asset: minecraft/lang/gv_im.json
Failed to get asset: minecraft/lang/mt_mt.json
Failed to get asset: minecraft/lang/sv_se.json
Failed to get asset: minecraft/lang/tlh_aa.json
Failed to get asset: minecraft/lang/gd_gb.json
Failed to get asset: minecraft/lang/is_is.json
Failed to get asset: minecraft/lang/vec_it.json
Failed to get asset: minecraft/lang/swg.json
Failed to get asset: minecraft/lang/he_il.json
Failed to get asset: realms/lang/be_by.json
Failed to get asset: realms/lang/ka_ge.json
Failed to get asset: realms/lang/hy_am.json
Failed to get asset: realms/lang/yi_de.json
Failed to get asset: realms/lang/ta_in.json
Some assets failed to download or validate, try running the task again.
	at net.minecraftforge.gradle.common.task.DownloadAssets.run(DownloadAssets.java:93)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:801)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:768)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
	at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
	at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

查到的资料
Forge开发环境配置失败
Fix the problem when local assets file broke, FG will be stuck


FledgeXu


这个看上去应该网络的导致的,说实话我也没什么好办法,只能多试试。
你可以试试先用官方启动器启动一次
不过如果只是资源文件出错,你也可以直接复制对应版本的 assets 文件到.gradle/caches/forge_gradle/assets下面。


周庸生


应该不是网络问题,那些下载地址不开代理都可以直接下载的。我手动把那些下载好的文件放进去,runClient还是报一样的错,而且放进去的文件也没了。我看控制台上的Hash failed,我发现assets/index下的json文件里面那些failed的文件名和hash可以对应上,但是size好像是对应不上的


周庸生




FledgeXu


你试试切换成原版的ForgeGrdle,然后运行runClient


周庸生


哇,终于打包成功了,并且把客户端运行起来了。免费的节点网速不稳定,打包一下午才成功。多谢老哥 :grimacing:


system


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