compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
compile 'com.google.code.gson:gson:1.7.1'
aber ich bin immerNachrüstung: 2.0.2 Stackoverflow bekommen
java.lang.StackOverflowError
at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:381)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:141)
Anfrage meine Json ist wie unter
{
"Key": "KEY",
"Token": "TOKEN_",
"Data": [
{
"UserContactID": "",
"ContactUniqueID": "1",
"UserID": "7",
"UserContactDetail": [
{
"ContactUniqueID": "1",
"KeyName": "Mobile",
"KeyType": "Home",
"Value": "+91123456789",
"IsActive": 1
},
{
"ContactUniqueID": "1",
"KeyName": "Mobile",
}]}
Bitte senden Sie den Code für Re felectiveTypeAdapterFactory-Klasse @Android. – Lampard