我有一个新的Gradle问题。我设法为forge 1.7.10设置了Eclipse工作区。但是我不能伪造1.10.2、1.11.2或1.12.2 我的gradle.properties将-Xmx设置为1G。当我尝试反编译MC时,出现错误“无法为3145728KB对象堆保留足够的空间”,但是堆空间设置为1G,而不是3G。错误代码也无济于事:
13:46:04.822 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe''
13:46:04.906 [QUIET] [system.out] Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
13:46:04.913 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
13:46:04.914 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe'' finished with exit value 1 (state: FAILED)
13:46:04.917 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':decompileMc'
13:46:04.918 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :decompileMc FAILED
13:46:04.918 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :decompileMc (Thread[Daemon worker,5,main]) completed. Took 0.871 secs.
13:46:04.919 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker,5,main]] finished, busy: 12.474 secs, idle: 0.011 secs
13:46:04.928 [ERROR] [org.gradle.BuildExceptionReporter]
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter]
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
13:46:04.929 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':decompileMc'.
13:46:04.930 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe'' finished with non-zero exit value 1
13:46:04.930 [ERROR] [org.gradle.BuildExceptionReporter]
13:46:04.930 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
13:46:04.931 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
13:46:04.931 [LIFECYCLE] [org.gradle.BuildResultLogger]
13:46:04.932 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
13:46:04.932 [LIFECYCLE] [org.gradle.BuildResultLogger]
13:46:04.932 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 28.788 secs
任何人都可以帮助我,以便我的毕业问题最终摆脱这个世界吗?
答案 0 :(得分:0)
JVM需要3 GB的空间,而您告诉它最大1 GB的空间。您给的钱不够,它需要的远远超过了您提供的。
将-Xmx提升到3GB。