Hey,
I’m having some issues using java library when including it with gradle from maven or jcenter. I’m getting java.lang.StackOverflowError exception.
Project compiles without any problems, when I use version 4.1.2, but any of the BETA versions don’t compile with gradle. If I download the library and include it as file, beta versions compile again.
Android studio was warning me duplicates, so I’ve also tried excluding them, but It’s still not working (code below).
androidTestCompile('io.appium:java-client:+'){
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'commons-io', module: 'commons-io'
exclude group: 'org.apache.commons', module: 'commons-lang3'
}
I’ve tried isolating library include (new fresh android gradle project), still the same problem.
Gradle stacktrace: click
Update 1: Tried fresh java project (without Android libraries), working as intended.
Update 2: Following resolved my issue:
androidTestCompile('io.appium:java-client:+'){
transitive = false
}