I need help to know if this error can be fixed

Started by JoseRicardo_YT on

Topic category: Help with MCreator software

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help to know if this error can be fixed
Fri, 06/25/2021 - 20:41 (edited)

Hello, I need to know if the error that will appear below can be fixed, it began to appear after a build task and when trying to export the mod, if there is no solution, tell me how I can open a backup

 

this is when trying to export

Executing 
    Gradle task: build

Build 
    info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 3983 MB, Windows 10, 
    JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk


    Task :compileJava UP-TO-DATE


    Task :processResources


    Task :classes


    Task :jar


    Task :downloadMcpConfig


    Task :extractSrg UP-TO-DATE


    Task :createMcpToSrg UP-TO-DATE


    Task :reobfJar

Exception 
    in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

 
      at org.objectweb.asm.ClassReader.readStringish(
ClassReader.java:3703
 
      at org.objectweb.asm.ClassReader.readStringish(ClassReader.java:3703)

 
      at org.objectweb.asm.ClassReader.readClass(
ClassReader.java:3718
 
      at org.objectweb.asm.ClassReader.readClass(ClassReader.java:3718)

 
      at org.objectweb.asm.ClassReader.accept(
ClassReader.java:431
 
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:431)

 
      at org.objectweb.asm.ClassReader.accept(
ClassReader.java:401
 
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)

 
      at net.md_5.specialsource.JarRemapper.remapClassFile(
JarRemapper.java:270
 
      at 
    net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:270)

 
      at net.md_5.specialsource.JarRemapper.remapClassFile(
JarRemapper.java:252
 
      at 
    net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:252)

 
      at net.md_5.specialsource.JarRemapper.remapJar(
JarRemapper.java:196
 
      at net.md_5.specialsource.JarRemapper.remapJar(JarRemapper.java:196)

 
      at net.md_5.specialsource.SpecialSource.main(
SpecialSource.java:295
 
      at net.md_5.specialsource.SpecialSource.main(SpecialSource.java:295)


    Task :reobfJar FAILED

FAILURE: 
    Build failed with an exception.


    What went wrong:

Execution 
    failed for task ':reobfJar'.


    Process 'command 'C:\Program Files\Pylo\MCreator\jdk\bin\java.exe'' 
    finished with non-zero exit value 1


    Try:

Run 
    with --stacktrace option to get the stack trace. Run with --info or 
    --debug option to get more log output. Run with --scan to get full 
    insights.


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

Deprecated 
    Gradle features were used in this build, making it incompatible with 
    Gradle 7.0.

Use 
    '--warning-mode all' to show the individual deprecation warnings.

See 
    https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec…

BUILD 
    FAILED in 1m 14s


    actionable tasks: 4 executed, 3 up-to-date

BUILD 
    FAILED

Task 
    completed in 1 minute and 40 seconds

I hope you can help me

 

Edited by JoseRicardo_YT on Fri, 06/25/2021 - 20:41
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and this when I try to do a…
Fri, 06/25/2021 - 20:41

and this when I try to do a build task (I don't know if they are the same)

Executing 
    Gradle task: build

Build 
    info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 3983 MB, Windows 10, 
    JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk


    Task :compileJava UP-TO-DATE


    Task :processResources UP-TO-DATE


    Task :classes UP-TO-DATE


    Task :jar UP-TO-DATE


    Task :downloadMcpConfig


    Task :extractSrg UP-TO-DATE


    Task :createMcpToSrg UP-TO-DATE


    Task :reobfJar

Exception 
    in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

 
      at org.objectweb.asm.ClassReader.readStringish(
ClassReader.java:3703
 
      at org.objectweb.asm.ClassReader.readStringish(ClassReader.java:3703)

 
      at org.objectweb.asm.ClassReader.readClass(
ClassReader.java:3718
 
      at org.objectweb.asm.ClassReader.readClass(ClassReader.java:3718)

 
      at org.objectweb.asm.ClassReader.accept(
ClassReader.java:431
 
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:431)

 
      at org.objectweb.asm.ClassReader.accept(
ClassReader.java:401
 
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)

 
      at net.md_5.specialsource.JarRemapper.remapClassFile(
JarRemapper.java:270
 
      at 
    net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:270)

 
      at net.md_5.specialsource.JarRemapper.remapClassFile(
JarRemapper.java:252
 
      at 
    net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:252)

 
      at net.md_5.specialsource.JarRemapper.remapJar(
JarRemapper.java:196
 
      at net.md_5.specialsource.JarRemapper.remapJar(JarRemapper.java:196)

 
      at net.md_5.specialsource.SpecialSource.main(
SpecialSource.java:295
 
      at net.md_5.specialsource.SpecialSource.main(SpecialSource.java:295)


    Task :reobfJar FAILED

FAILURE: 
    Build failed with an exception.


    What went wrong:

Execution 
    failed for task ':reobfJar'.


    Process 'command 'C:\Program Files\Pylo\MCreator\jdk\bin\java.exe'' 
    finished with non-zero exit value 1


    Try:

Run 
    with --stacktrace option to get the stack trace. Run with --info or 
    --debug option to get more log output. Run with --scan to get full 
    insights.


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

Deprecated 
    Gradle features were used in this build, making it incompatible with 
    Gradle 7.0.

Use 
    '--warning-mode all' to show the individual deprecation warnings.

See 
    https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec…

BUILD 
    FAILED in 10s


    actionable tasks: 2 executed, 5 up-to-date

BUILD 
    FAILED

Task 
    completed in 13 seconds

Do solution 2 from our…
Sat, 06/26/2021 - 09:43

Do solution 2 from our fixing gradle errors page.

The solution to this problem and many other problems can be found in our knowledge base: https://mcreator.net/support/knowledgebase Please check the knowledge base before opening a new topic on the issue which has a known fix.