如何调试NoClassDefFoundError(Gradle,Kotlin)

运行时我的kotlin项目,我得到以下错误:

java.lang.NoClassDefFoundError: com/julianjarecki/latextemplates/lib/jtwig/RequireNodeParser at com.julianjarecki.latextemplates.lib.jtwig.RequireNodeParserProvider.(RequireNodeParserProvider.kt:8) at com.julianjarecki.latextemplates.lib.jtwig.RequireExtension.configure(RequireExtension.kt:11) at org.jtwig.environment.EnvironmentFactory.create(EnvironmentFactory.java:60) at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate.getLatexRequireEnvironment(LatexParser.kt:76) at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate.access$getLatexRequireEnvironment$p(LatexParser.kt:68) at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate$template$2.invoke(LatexParser.kt:73) at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate$template$2.invoke(LatexParser.kt:68) at com.julianjarecki.latextemplates.lib.UpdatableLazy.getValue(UpdatableLazy.kt:17) at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate.getTemplate(LatexParser.kt) at com.julianjarecki.latextemplates.view.MainView$root$1$4$1$1$2.invoke(MainView.kt:133) at com.julianjarecki.latextemplates.view.MainView$root$1$4$1$1$2.invoke(MainView.kt:35) at tornadofx.NodesKt$onDoubleClick$1.handle(Nodes.kt:484) at tornadofx.NodesKt$onDoubleClick$1.handle(Nodes.kt) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) 

事实上,当我查看我的buil文件夹时,RequireNodeParser.class不是它应该在的地方。 这个类在RequireNodeParserProvider中是这样引用的:

 package com.julianjarecki.latextemplates.lib.jtwig import org.jtwig.parser.addon.AddonParserProvider import org.jtwig.parser.parboiled.node.AddonParser import com.julianjarecki.latextemplates.lib.jtwig.RequireNodeParser class RequireNodeParserProvider : AddonParserProvider { override fun keywords(): MutableCollection = mutableListOf(RequireKeywords.REQUIRE.token) override fun parser(): Class = RequireNodeParser::class.java } 

我怎样才能开始调试这个问题?

编辑1(StackTrace的ClassNotFoundException原因):

堆栈跟踪的原因

Kotlin language will be the best programming language for Android.