java.lang.NumberFormatException: Esperado um int, mas era 0,6 na linha 8 da coluna 8454
Estou usando a biblioteca de atualização para minhas chamadas em um projeto de demonstração.
Eu recebi o seguinte erro:
java.lang.NumberFormatException: Esperado um int, mas era 0,6 na linha 1 da coluna 8454 caminho $ .result.results.ads [2] .acres
Entendo que isso se deve ao GSON.
Vou mostrar o JSON em que ele está sendo capturado:
{
"ad_id":739580087654,
"property_type":"site",
"house_type":"",
"selling_type":"private-treaty",
"price_type":"",
"agreed":0,
"priority":2,
"description":"Beautiful elevated 0.6 acre site - zoned residential - and within easy walk to this popular and scenic coastal village\r\n\r\n\r\nthe site area is zoned residential ( i.e. can be constructed on for residential home) and has beautiful coastal views\r\n\r\nSpiddal is an exceptionally popular location , just 8 miles west of Galway City but the area has not been over developed.\r\n\r\nAll services and family amenities are location in the village centre.\r\n\r\n",
"price":135000,
"bedrooms":null,
"bathrooms":null,
"tax_section":"0",
"square_metres":0,
"acres":0.6, <----------------------TRIPPING UP HERE
"features":[
"Zoned residential",
"within easy walk of coastal village of Spiddal",
"with coastal views"
],
"ber_rating":"",
"ber_code":"",
"ber_epi":0,
"city":"",
"general_area":"Connemara",
"postcode":null,
"latlon_accuracy":1,
"main_email":"",
"cc_email":"",
"auction_address":"",
"start_date":1384425002,
"listing_date":1384425002,
"agreed_date":0,
"auction_date":0,
"tags":1
},
Eu não sou tão experiente com o Retrofit, então decidi aprender e integrar este projeto.
Alguém teria alguma sugestão?
Não tenho nenhum controle sobre o envio do JSON.