Fabric API

Fabric API

106M Downloads

Gradle takes forever when trying to download latest fabric api version for 1.16.2

TelepathicGrunt opened this issue ยท 3 comments

commented

It's hard to explain the issue but whenever I am trying to implement the latest fabric api version to stop one of the other dependencies from downloading an outdated version of fabric api in 1.16.2
(all dependencies only modCompile fabric api but none bundles it. So gradle seems to be trying to automatically download a fabric api version that's too old or at least, that's what people are saying is happening)

The line I used:
modImplementation "net.fabricmc.fabric-api:fabric-api:0.17.2+build.396-1.16"

When I exclude it, gradle is able to import and resolve the dependencies and all just fine. But when I do include it, it gets stuck looping through the fabric api stuff forever when I refresh gradle (I even ran it upward to an hour and still no progress)
image

My build.gradle: https://hatebin.com/gkgzpncrqf
My gradle.properties: https://hatebin.com/agdfohqzwd

I am following the example fabric mod here to get the right fabric api version and build.gradle line: https://github.com/FabricMC/fabric-example-mod/blob/master/gradle.properties

Might also be a Loom issue too. Kind of stuck right now and can't develop in 1.16.2 unless I can get the newer fabric api version in my project so it stops crash at runtime like it does with the old version it automatically downloads.

commented

Yes, I have tried clearing gradle caches, gradle clean, invalidate cache and restart intellij, etc. But the hang only occurs when fabric api is added to my build.gradle. Does not happen for any of the other dependencies

commented

Is this still an issue with the latest versions?

commented

Nope. It only happened that one day. Very weird.