Unable to create call adapter for class example.Simple

后端 未结 14 1201
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 23:14

I am using retrofit 2.0.0-beta1 with SimpleXml. I want the retrieve a Simple (XML) resource from a REST service. Marshalling/Unmarshalling the Simple object with SimpleXML w

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 23:39

    IllegalArgumentException: Unable to create call adapter for class java.lang.Object

    Short answer: I have solved it by the following changes

    ext.retrofit2Version = '2.4.0' -> '2.6.0'
    implementation"com.squareup.retrofit2:retrofit:$retrofit2Version"
    implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit2Version"
    implementation "com.squareup.retrofit2:converter-gson:$retrofit2Version"
    

    Good luck

提交回复
热议问题