Android无法找到类'org.apache.commons.scxml.env.jexl.JexlContext'

时间:2014-04-27 18:38:16

标签: android jexl apache-commons-scxml

我正在使用apache commons SCXML来定义我的Android应用程序的状态机。在我的Android Studio项目中,我在build.gradle文件的依赖项部分添加了以下内容:

compile 'commons-scxml:commons-scxml:0.9'
compile 'commons-logging:commons-logging:1.1.3'
compile 'org.apache.commons:commons-jexl:2.1.1'

this question的答案不同,我无法添加xalan,因为它试图覆盖Android系统文件,导致this error。 然后,我单击了“使用Gradle文件同步项目”按钮,并且commons-scxml和commons-jexl文件显示在我项目的“外部依赖项”部分中。

然而,当我运行我的应用程序时,我仍然会收到此错误:

Could not find class 'org.apache.commons.scxml.env.jexl.JexlContext', referenced from method org.apache.commons.scxml.env.AbstractStateMachine

1 个答案:

答案 0 :(得分:0)

您还需要org.apache.commons:commons-jexl:1.1作为依赖项。