Reputation: 3070
I'm using apache commons SCXML to define a state machine my Android app. In my Android Studio project, I've added the following in the dependencies section of my build.gradle file:
compile 'commons-scxml:commons-scxml:0.9'
compile 'commons-logging:commons-logging:1.1.3'
compile 'org.apache.commons:commons-jexl:2.1.1'
Unlike the answer to this question, I cannot add xalan as it tries to overwrite Android system files, leading to this error. I then clicked the 'Sync Project with Gradle Files' button, and the commons-scxml and commons-jexl files showed up in the "external dependencies" section of my project.
However, when I run my app, I still get this error:
Could not find class 'org.apache.commons.scxml.env.jexl.JexlContext', referenced from method org.apache.commons.scxml.env.AbstractStateMachine
Upvotes: 0
Views: 357
Reputation: 1
You also need org.apache.commons:commons-jexl:1.1
as a dependency.
Upvotes: 0