I'm getting this error: ```java.lang.RuntimeExcept...
# gradle
m
I'm getting this error:
Copy code
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at engine.launcher.AppGameProvider.launch(AppGameProvider.kt:102)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at engine.launcher.AppLoader.main(AppLoader.kt:11)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at engine.launcher.AppGameProvider.launch(AppGameProvider.kt:100)
	... 2 more
Caused by: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
	at engine.runtime.MainKt.main(Main.kt)
	... 7 more
Caused by: java.lang.reflect.InvocationTargetException
I tried adding
implementation(kotlin("stdlib"))
in my
dependencies
block, but even in a shadowJar it fails to find the classes for some reason. How would I go about solving this?
c
this looks like a runtime error, not a build-time error? How is this related to Gradle?
m
Because I'm using gradle to bundle all dependencies
c
in that case you’ll need to clarify the context for this. A minimal Gradle reproducer is often helpful. As it stands there’s too little context to be able to assist.