question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[1.17.x Fabric] Cannot Remap AW From Namespace 'named'

See original GitHub issue

Version Info

Minecraft: Java Edition 1.17 GeckoLib: 3.0.13 Loader: Fabric

Issue

After adding Geckolib to the Gradle buildscript, Gradle complains that it cannot remap an accesswidener from namespace named. It expected intermediary.

  • Confirmed caused by adding Geckolib.
  • Does not occur if Geckolib is removed from the buildscript.

Buildscript

  • Outside the buildscript block, next to the Minecraft, Fabric API, and Fabric Loader dependencies.
repositories {
	maven {
		url 'https://maven.terraformersmc.com/releases'
		content {
			includeGroup('com.terraformersmc')
		}
	}
	maven {
		url "https://maven.shedaniel.me/"
		content {
			includeGroup('me.shedaniel')
		}
	}
	maven {
		url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
		content {
			includeGroup('software.bernie.geckolib')
		}
	}
}

dependencies {
	minecraft "com.mojang:minecraft:${project.minecraft_version}"
	mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
	modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
	modApi "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
	modApi "com.terraformersmc:modmenu:${project.modmenu_version}"

	modImplementation("software.bernie.geckolib:geckolib-fabric-1.17:${project.geckolib_version}:dev") {

	}
}
org.gradle.jvmargs = -Xmx1G
kotlin_version     = 1.5.30

minecraft_version  = 1.17.1
yarn_mappings      = 1.17.1+build.61
loader_version     = 0.11.7
fabric_version     = 0.40.1+1.17

mod_version        = 1.0.0
maven_group        = com.halotroop
archives_base_name = mod-suite

modmenu_version    = 2.0.11
rei_version        = 6.0.279-alpha
geckolib_version   = 3.0.13

Stacktrace:

Caused by: java.lang.IllegalArgumentException: Cannot remap access widener from namespace 'named'. Expected: 'intermediary'
	at net.fabricmc.accesswidener.AccessWidenerRemapper.visitHeader(AccessWidenerRemapper.java:53)
	at net.fabricmc.accesswidener.AccessWidenerReader.read(AccessWidenerReader.java:93)
	at net.fabricmc.accesswidener.AccessWidenerReader.read(AccessWidenerReader.java:73)
	at net.fabricmc.accesswidener.AccessWidenerReader.read(AccessWidenerReader.java:66)
	at net.fabricmc.loom.configuration.mods.ModProcessor.remapAccessWidener(ModProcessor.java:120)
	at net.fabricmc.loom.configuration.mods.ModProcessor.remapJars(ModProcessor.java:186)
...200+ more lines

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
MiniDaycommented, Sep 20, 2021

I also encountered this problem, but I changed the fabric-loom to version 0.9 and it can be used normally. You can also try

Read more comments on GitHub >

github_iconTop Results From Across the Web

tutorial:accesswideners [Fabric Wiki]
Classes. Class access can be changed by specifying the access and the class name as named the mappings namespace defined in the header....
Read more >
Tanzu Kubernetes Grid Integrated Edition (TKGI) v1.8
When Tanzu Kubernetes Grid Integrated Edition upgrades a single-master cluster, you cannot interact with your cluster, use kubectl ,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found