Using SimpleXML with Android and Gradle

后端 未结 4 2008
暗喜
暗喜 2021-01-30 05:26

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         


        
4条回答
  •  时光取名叫无心
    2021-01-30 05:33

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

提交回复
热议问题