我正在使用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,因为它试图覆盖安卓系统文件,从而导致this error。然后我点击了'Sync project with Gradle Files‘按钮,commons-scxml和commons-jexl文件出现在我的项目的“外部依赖”部分。
然而,当我运行我的应用程序时,我仍然得到这个错误:
Could not find class 'org.apache.commons.scxml.env.jexl.JexlContext', referenced from method org.apache.commons.scxml.env.AbstractStateMachine发布于 2015-02-12 17:37:39
您还需要将org.apache.commons:commons-jexl:1.1作为依赖项。
https://stackoverflow.com/questions/23327379
复制相似问题