I\'m having troubles trying to compile an Android application with Gradle 0.5.+ and Android Studio, using SimpleXML.
This is the error:
Gradle: Execution
Try this if previous solution doesn't work:
configurations {
compile.exclude module: 'stax'
compile.exclude module: 'stax-api'
compile.exclude module: 'xpp3'
}
dependencies {
[...]
compile 'org.simpleframework:simple-xml:2.7.+'
}
repositories {
[...]
mavenCentral()
}
I think you need to exclude some of dependencies.
compile('org.simpleframework:simple-xml:2.7.+'){
exclude module: 'stax'
exclude module: 'xpp3'
}
I am getting the same error while using SimpleFramework. Actually i resolved it by adding these lines in build.gradle:
compile('org.simpleframework:simple-xml:2.7.1')
{
exclude group: 'stax', module: 'stax-api'
exclude group: 'xpp3', module: 'xpp3'<br>
}
You need to also exclude stax-API.
implementation('org.simpleframework:simple-xml:2.7.+'){
exclude module: 'stax'
exclude module: 'stax-api'
exclude module: 'xpp3'
}