3

When trying to build the Fabric ExampleMod(link) I get this Error:

    FAILURE: Build failed with an exception.

* Where:
Build file 'E:\Programmieren\Minecraft\Mods\Advanced Totems\build.gradle' line: 2

* What went wrong:
An exception occurred applying plugin request [id: 'fabric-loom', version: '0.5-SNAPSHOT']
> Failed to apply plugin 'fabric-loom'.
   > Configuration with name 'compile' not found.

* 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 1s

I have followed this tutorial(link)

What I have tried:

  • Updating Java to Version 16
  • ./gradlew --stop
  • starting debug mode

Please help!

chrylis -cautiouslyoptimistic-
  • 75,269
  • 21
  • 115
  • 152
Toast
  • 77
  • 1
  • 7
  • 2
    Probably the version of the `fabric-loom` plugin is not compatible with your Gradle version. Gradle removed the `compile` configuration with version 7.0 (people have been told to no longer use it since Gradle 3.4). Maybe upgrading the `fabric-loom` plugin to version 0.9 will help. – Thomas Kläger Aug 30 '21 at 17:01
  • @ThomasKläger So if you're not supposed to use compile, what are you supposed to use instead? – Steven J Owens Mar 16 '22 at 04:32
  • @StevenJOwens the answer is in the [Gradle Upgrade Notes](https://docs.gradle.org/current/userguide/upgrading_version_6.html#sec:configuration_removal): instead of `compile` use `implementation` . – Thomas Kläger Mar 16 '22 at 07:50
  • @ThomasKläger Thanks, but there's no occurrence of the string "compile" in either of the two build.gradle files in my project. Hm, I wonder if I need to upgrade one of the dependencies... – Steven J Owens Mar 17 '22 at 16:00
  • 1
    @StevenJOwens it can be an outdated plugin that tries to add dependencies to the `compile` configuration - this was the problem the OP most probably had. – Thomas Kläger Mar 17 '22 at 16:43

0 Answers0