Grandle task failed and not being able to update to latest version

Started by DageLV on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 23:13, 18. Oct 2019
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Grandle task failed and not being able to update to latest version

Hello! So i used 1.7.6 for a while but i was getting this error-

https://prnt.sc/iglrpv

Now i updated to 1.7.7 and i get error which says the same thing in first error and after i click ok, it shows me this error-

[spoiler]
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 10.0.16299.125]
(c) 2017 Microsoft Corporation. Visas ties�bas patur‰tas.
C:\Pylo\MCreator177>cd forge
C:\Pylo\MCreator177\forge>SET "JAVA_HOME=C:\Pylo\MCreator177\jdk64\"
C:\Pylo\MCreator177\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator177\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator177\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-315a0db        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:cleanCache FAILED
BUILD FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cleanCache'.
> Unable to delete file: C:\Users\DageLV\.gradle\caches\minecraft\net\minecraftforge\forge\1.12.2-14.23.1.2555\snapshot\20171003\forge-1.12.2-14.23.1.2555-srgBin.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1 mins 25.82 secs
C:\Pylo\MCreator177\forge>
Task completed with return code 0 in 92068 milliseconds

[/spoiler]

Please open an issue in the…
Thu, 02/22/2018 - 09:37

Please open an issue in the issue tracker before posting in the forums next time.

To fix this, simply delete the file that the program cannot delete itself. In your case it's located here:

C:\Users\DageLV\.gradle\caches\minecraft\net\minecraftforge\forge\1.12.2-14.23.1.2555\snapshot\20171003\forge-1.12.2-14.23.1.2555-srgBin.jar