Can't export mod

Status
Fixed
Product/platform
MCreator/Windows
Priority
Normal
Issue description

When I try to export mod, I get a message saying ”no mod file was generated” that I can not export. The progress will stop with "building workspace". 

The console

Executing gradle command: clean build
Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator179>cd forge
C:\Pylo\MCreator179\forge>SET "JAVA_HOME=C:\Pylo\MCreator179\jdk\"
C:\Pylo\MCreator179\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator179\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator179\forge>SET "GRADLE_USER_HOME=C:\Users\User\.mcreator\gradle"
C:\Pylo\MCreator179\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms1024m -Xmx2048m" clean build 
C:\Pylo\MCreator179\forge>
Exception in thread "main" java.lang.RuntimeException: Gradle distribution 'C:\Users\User\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk' contains too many directories. Expected to find exactly 1 directory.
   at org.gradle.wrapper.Install.getDistributionRoot(Install.java:86)
   at org.gradle.wrapper.Install.access$000(Install.java:26)
   at org.gradle.wrapper.Install$1.call(Install.java:50)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Task completed with return code 0 in 1698 milliseconds.

Is there a solution?

Attachment Size
error140.69 KB 140.69 KB

Issue comments

Go to the folder C:\Users\User\.mcreator\ and remove folder gradle. After you do this, recompile the mod. It will take longer than usual to complete, but it will work after you do this.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.