FAILURE: Build failed with an exception.

Started by Мудрый Гриб on

Topic category: Troubleshooting, bugs, and solutions

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FAILURE: Build failed with an exception.
Sat, 11/30/2024 - 07:12 (edited)
  • This error appeared suddenly after I upgraded MCreator to version 2024.2. Before that, everything was fine. Moreover, this is not related to any specific workspace, but to the program itself. I tried many solutions from the Knowledge Base, even tried to delete MCreator and everything related to it (including the "Pylo" folder) and downloaded it again, but the error did not disappear. I have absolutely no idea what to do.

     

    > Task :compileJava FAILED 

    FAILURE: Build failed with an exception. 

    * What went wrong: 

    Execution failed for task ':compileJava'. 

    > Could not resolve all files for configuration ':compileClasspath'. 

     > Could not find net.minecraftforge:forge:1.20.1-47.3.0_mapped_official_1.20.1. 

     Searched in the following locations: 

     - file:/C:/Users/%D0%A1%D0%B5%D1%80%D0%B2%D0%B8%D1%81/.mcreator/gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.20.1-47.3.0_mapped_official_1.20.1/forge-1.20.1-47.3.0_mapped_official_1.20.1.pom 

     - file:/C:/Users/%D0%A1%D0%B5%D1%80%D0%B2%D0%B8%D1%81/.mcreator/gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.20.1-47.3.0_mapped_official_1.20.1/forge-1.20.1-47.3.0_mapped_official_1.20.1.jar 

     Required by: 

     project : 

    * 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. 

    BUILD FAILED in 47s 

    1 actionable task: 1 executed 

     

    BUILD FAILED 

    Task completed in 54 seconds

     

Edited by Мудрый Гриб on Sat, 11/30/2024 - 07:12