The message
java.lang.NoSuchMethodError: 'void net.minecraft.class_1234.method_5678(…)'
java.lang.NoClassDefFoundError: dev/architectury/event/events/common/LifecycleEvent
Caused by: java.lang.ClassNotFoundException: com.example.lib.ApiThe full message is in the game folder: logs/latest.log for every start, and crash-reports/ for crashes that got far enough to write a report. In Prism, CurseForge and the Modrinth App, the instance's folder button opens the game folder.
What it means
Mods are built against exact versions of Minecraft, the loader and the library mods they use. When one of those changes, a method, field or class the mod calls can disappear or change shape. Java then stops with NoSuchMethodError, NoSuchFieldError, AbstractMethodError or IncompatibleClassChangeError.
ClassNotFoundException and NoClassDefFoundError mean a whole class is missing. If the class name starts with another mod's package (dev/architectury, software/bernie/geckolib), that library mod is missing or too old. If it starts with net/minecraft, the mod was made for another Minecraft version.
The class name tells you where to look: net.minecraft is the game, net.fabricmc or net.neoforged is the loader, anything else is a mod or library.
How to fix it
- 1Find the first NoSuchMethodError, NoSuchFieldError or ClassNotFoundException in logs/latest.log or the crash report.
- 2Read the class name in it. Search the start of it (for example “dev.architectury”) to see which mod it belongs to.
- 3If it is a library mod: install it, or update it to the version the calling mod asks for (its page lists the required version).
- 4If it is net.minecraft: the mod that crashed was made for another Minecraft version. The crash report's stack lists the mod; get its version for your game.
- 5If it is the loader: update Fabric Loader, Forge or NeoForge, or use the mod's version for your loader version.
- 6After a big update of one library, update the mods that depend on it too.
With Packquill
Packquill tells apart a missing library, a mod made for another Minecraft version and one made for another loader version, names the mod, and offers to install the missing one or update the mismatched one.
Packquill is free for Windows and Linux. It backs up every change, so anything it does can be undone.
Questions
Why did this start after I updated one mod?
Library mods change their code between versions. Updating one library without the mods that use it (or the other way round) leaves them out of step.
The class is “net.minecraft.class_1234”. What is that?
Fabric's name for a game class. It means the mod expects the code of another Minecraft version.