javagradleintellij-ideaminecraft-fabric

IntelliJ IDEA asks me to update gradle


I making a Minecraft mod (almost) first time for Fabric 1.20.1 (lodaer 0.16.10). When I try to build or do something with gradle, it gives an error:

A problem occurred configuring root project 'projectname'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not resolve net.fabricmc:fabric-loom:1.10-SNAPSHOT.
     Required by:
         root project : > fabric-loom:fabric-loom.gradle.plugin:1.10-SNAPSHOT:20250225.144903-2
      > Plugin net.fabricmc:fabric-loom:1.10-SNAPSHOT:20250225.144903-2 requires at least Gradle 8.12. This build uses Gradle 8.11.1.

* Try:
> Upgrade to at least Gradle 8.12. See the instructions at https://docs.gradle.org/8.11.1/userguide/upgrading_version_8.html#sub:updating-gradle.
> Downgrade plugin net.fabricmc:fabric-loom:1.10-SNAPSHOT:20250225.144903-2 to an older version compatible with Gradle 8.11.1.
> 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.

If I downgrade fabric loom version to 1.9, everything works fine, is it safe to downgrade? Maybe I should do something different?


Solution

  • I agree with the commenter, upgrading gradle is better than downgrading Fabric.

    I think a look at this post should help.

    Changing default version of gradle in Intellij