ViaFabric

ViaFabric

709k Downloads

DefFoundError when running project

Sapu98 opened this issue ยท 1 comments

commented

I've imported ViaFabric as a project in intellij, its taks downloaded the dependencies and everything seems fine, until I try to run it and I get this error:

Caused by: java.lang.NoClassDefFoundError: org/yaml/snakeyaml/constructor/BaseConstructor

I think it may be a a missing dependency but I'm not an expert with gradle so im not sure how to add that missing library(?)

crash report: https://hastebin.com/yuxomajaqa.http

Do you know how to fix this?

commented

Fixed by adding in build.gradle.kts:

implementation("org.yaml", "snakeyaml", "1.26")

between

include("us.myles:viaversion:3.2.0")
include("org.yaml:snakeyaml:1.26")