Error in 'CompileJava' task due to error in configuration files

Started by Pedro Mantovani on

Topic category: Troubleshooting, bugs, and solutions

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Error in 'CompileJava' task due to error in configuration files

I'm trying to compile a test of my mod, but every time I try this error appears:
> 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/Usu%C3%A1rio/.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/Usu%C3%A1rio/.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. 
> Get more help at https://help.gradle.org. 
BUILD FAILED in 59s 
1 actionable task: 1 executed 

BUILD FAILED

The solution to this problem…
Mon, 11/25/2024 - 19:03

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.