Using SimpleXML with Android and Gradle

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()
}

You need to also exclude stax-API.

implementation('org.simpleframework:simple-xml:2.7.+'){
    exclude module: 'stax'
    exclude module: 'stax-api'
    exclude module: 'xpp3'
}

I think you need to exclude some of dependencies.

compile('org.simpleframework:simple-xml:2.7.+'){
    exclude module: 'stax'
    exclude module: 'xpp3'
}