retrofit 2.0 xml simplexml converter issue while having retrolambda in gradle file

前端 未结 1 1375
时光说笑
时光说笑 2021-01-06 13:32

Here is my gradle file

apply plugin: \'com.android.application\'
apply plugin: \'me.tatarka.retrolambda\'
android {
    compileSdkVersion 23
    buildToolsV         


        
相关标签:
1条回答
  • 2021-01-06 14:16

    Seem like Simple XML has transitive dependencies which are already included in Android. See https://github.com/square/retrofit/issues/1536. We need to exclude three dependencies: stax:stax-api, stax:stax, and xpp3:xpp3. I managed to achieve this by using this compile statement in gradle

    compile ('com.squareup.retrofit2:converter-simplexml:2.0.0-beta4'){
        exclude module: 'stax-api'
        exclude module: 'stax'
        exclude module: 'xpp3'
    }
    
    0 讨论(0)
提交回复
热议问题