Jump to content

Help me! Task :recompileMc FAILED


lll5353lll

Recommended Posts

you need java (jdk) 8

Also please post your log in a spoiler - we don't like having to download stuff to view it

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

thank you for your reply(T_T)/~

I changed java8 and tried again. but I got same error message.

 

Spoiler

C:\Users\[user]\Desktop\mod>gradlew setupDecompWorkspace --stacktrace --info
Initialized native services in: C:\Users\[user]\.gradle\native
Found daemon DaemonInfo{pid=17900, address=[c15fd3b8-aaa0-45b4-aa84-cb5d199cbe61 port:50988, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], state=Idle, lastBusy=1534337676270, context=DefaultDaemonContext[uid=5fedf379-149b-4cce-9d17-37e209574583,javaHome=C:\Program Files\Java\jdk-10.0.2,daemonRegistryDir=C:\Users\[user]\.gradle\daemon,pid=17900,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-31j,-Duser.country=JP,-Duser.language=ja,-Duser.variant]} however its context does not match the desired criteria.
At least one daemon option is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Files\Java\jdk-10.0.2,daemonRegistryDir=C:\Users\[user]\.gradle\daemon,pid=13120,idleTimeout=null,daemonOpts=-Xmx2048M,-Dfile.encoding=windows-31j,-Duser.country=JP,-Duser.language=ja,-Duser.variant]
Actual: DefaultDaemonContext[uid=5fedf379-149b-4cce-9d17-37e209574583,javaHome=C:\Program Files\Java\jdk-10.0.2,daemonRegistryDir=C:\Users\[user]\.gradle\daemon,pid=17900,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-31j,-Duser.country=JP,-Duser.language=ja,-Duser.variant]

  Looking for a different daemon...
The client will now receive all logging from the daemon (pid: 19428). The daemon log file: C:\Users\[user]\.gradle\daemon\4.9\daemon-19428.out.log
Starting 5th build in daemon [uptime: 3 hrs 49 mins 12.949 secs, performance: 100%, no major garbage collections]
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
file or directory 'C:\Users\[user]\Desktop\mod\src\api\resources', not found
All projects evaluated.IGURING [4s]ile 'C:\Users\[user]\Desktop\mod\settings.gradle'.
Selected primary task 'setupDecompWorkspace' from project :ma\Desktop\mod\build.gradle'.
Tasks to be executed: [task ':deobfCompileDummyTask', task ':deobfProvidedDummyTask', task ':getVersionJson', task ':extractUserdev', task ':extractDependencyATs', task ':extractMcpData', task ':extractMcpMappings', task ':genSrgs', task ':downloadClient', task ':downloadServer', task ':splitServerJar', task ':mergeJars', task ':deobfMcSRG', task ':decompileMc', task ':fixMcSources', task ':applySourcePatches', task ':remapMcSources', task ':recompileMc', task ':extractNatives', task ':getAssetIndex', task ':getAssets', task ':makeStart', task ':setupDecompWorkspace']
:deobfCompileDummyTask (Thread[Task worker for ':',5,main]) started.

> Task :deobfCompileDummyTask
Task ':deobfCompileDummyTask' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:deobfCompileDummyTask (Thread[Task worker for ':',5,main]) completed. Took 0.013 secs.
:deobfProvidedDummyTask (Thread[Task worker for ':',5,main]) started.

> Task :deobfProvidedDummyTask
Task ':deobfProvidedDummyTask' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:deobfProvidedDummyTask (Thread[Task worker for ':',5,main]) completed. Took 0.003 secs.
:getVersionJson (Thread[Task worker for ':',5,main]) started.

> Task :getVersionJson
Task ':getVersionJson' is not up-to-date because:
  Task.upToDateWhen is false.
:getVersionJson (Thread[Task worker for ':',5,main]) completed. Took 2.381 secs.
:extractUserdev (Thread[Task worker for ':',5,main]) started.

> Task :extractUserdev UP-TO-DATE
Skipping task ':extractUserdev' as it is up-to-date.
:extractUserdev (Thread[Task worker for ':',5,main]) completed. Took 0.014 secs.
:extractDependencyATs (Thread[Task worker for ':',5,main]) started.

> Task :extractDependencyATs SKIPPED
Skipping task ':extractDependencyATs' as task onlyIf is false.
:extractDependencyATs (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
:extractMcpData (Thread[Task worker for ':',5,main]) started.

> Task :extractMcpData SKIPPED
Skipping task ':extractMcpData' as task onlyIf is false.
:extractMcpData (Thread[Task worker for ':',5,main]) completed. Took 0.141 secs.
:extractMcpMappings (Thread[Task worker for ':',5,main]) started.

> Task :extractMcpMappings SKIPPED
Skipping task ':extractMcpMappings' as task onlyIf is false.
:extractMcpMappings (Thread[Task worker for ':',5,main]) completed. Took 0.161 secs.
:genSrgs (Thread[Task worker for ':',5,main]) started.

> Task :genSrgs SKIPPED
Skipping task ':genSrgs' as task onlyIf is false.
:genSrgs (Thread[Task worker for ':',5,main]) completed. Took 0.421 secs.
:downloadClient (Thread[Task worker for ':',5,main]) started.

> Task :downloadClient SKIPPED
Skipping task ':downloadClient' as task onlyIf is false.
:downloadClient (Thread[Task worker for ':',5,main]) completed. Took 0.235 secs.
:downloadServer (Thread[Task worker for ':',5,main]) started.

> Task :downloadServer SKIPPED
Skipping task ':downloadServer' as task onlyIf is false.
:downloadServer (Thread[Task worker for ':',5,main]) completed. Took 0.859 secs.
:splitServerJar (Thread[Task worker for ':',5,main]) started.

> Task :splitServerJar SKIPPED
Skipping task ':splitServerJar' as task onlyIf is false.
:splitServerJar (Thread[Task worker for ':',5,main]) completed. Took 4.313 secs.
:mergeJars (Thread[Task worker for ':',5,main]) started.

> Task :mergeJars SKIPPED
Skipping task ':mergeJars' as task onlyIf is false.
:mergeJars (Thread[Task worker for ':',5,main]) completed. Took 0.897 secs.
:deobfMcSRG (Thread[Task worker for ':',5,main]) started.

> Task :deobfMcSRG SKIPPED
Skipping task ':deobfMcSRG' as task onlyIf is false.
:deobfMcSRG (Thread[Task worker for ':',5,main]) completed. Took 0.751 secs.
:decompileMc (Thread[Task worker for ':',5,main]) started.

> Task :decompileMc SKIPPED
Skipping task ':decompileMc' as task onlyIf is false.
:decompileMc (Thread[Task worker for ':',5,main]) completed. Took 0.695 secs.
:fixMcSources (Thread[Task worker for ':',5,main]) started.

> Task :fixMcSources SKIPPED
Skipping task ':fixMcSources' as task onlyIf is false.
:fixMcSources (Thread[Task worker for ':',5,main]) completed. Took 1.833 secs.
:applySourcePatches (Thread[Task worker for ':',5,main]) started.

> Task :applySourcePatches SKIPPED
Skipping task ':applySourcePatches' as task onlyIf is false.
:applySourcePatches (Thread[Task worker for ':',5,main]) completed. Took 0.677 secs.
:remapMcSources (Thread[Task worker for ':',5,main]) started.

> Task :remapMcSources SKIPPED
Skipping task ':remapMcSources' as task onlyIf is false.
:remapMcSources (Thread[Task worker for ':',5,main]) completed. Took 0.709 secs.
:recompileMc (Thread[Task worker for ':',5,main]) started.

> Task :recompileMc
No output file found.
Task ':recompileMc' is not up-to-date because:
  Task has failed previously.

> Task :recompileMc FAILED
:recompileMc (Thread[Task worker for ':',5,main]) completed. Took 15.104 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':recompileMc'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':recompileMc'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
        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:300)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
        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:273)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:258)
        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)
Caused by: java.lang.NullPointerException
        at net.minecraftforge.gradle.user.TaskRecompileMc.getExtPath(TaskRecompileMc.java:107)
        at net.minecraftforge.gradle.user.TaskRecompileMc.doStuff(TaskRecompileMc.java:82)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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:786)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:753)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
        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)
        ... 31 more


* Get more help at https://help.gradle.org

BUILD FAILED in 43s
5 actionable tasks: 4 executed, 1 up-to-date

 

Link to comment
Share on other sites

Just shooting in the dark but try adding --refresh-dependencies

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.