Skip to content Skip to sidebar Skip to footer
Showing posts with the label Retrofit2

Deserialze Json With A Wrapper Keyword With Gson

I am using retroft and gson for request/response in my app. The json structure I get from server fo… Read more Deserialze Json With A Wrapper Keyword With Gson

Android: Library Project With Retrofit Results In Noclassdeffounderror

I'm trying to build an android library project which uses OkHttp and Retrofit to grant access t… Read more Android: Library Project With Retrofit Results In Noclassdeffounderror

Retrofit2: Upload An Image With Some Form Data-android

The above screenshot contain the Post method and Response from the server.. here i am trying to upl… Read more Retrofit2: Upload An Image With Some Form Data-android

Retrofit "illegalstateexception: Already Executed"

I have a Retrofit network call that id like to run every 5 seconds. My current code: Handler h = ne… Read more Retrofit "illegalstateexception: Already Executed"

Sending List Of Objects In Form-urlencoded Request Using Retrofit2

This is my postman request: I'm going to send a POST request using Retrofit2, Gson and RxJava2… Read more Sending List Of Objects In Form-urlencoded Request Using Retrofit2

Retrofit2: Sending Post Request With String Request

Hi I am new to android and now I am using Retrofit for integrating the web services. I am not under… Read more Retrofit2: Sending Post Request With String Request

Gson Expected Begin_array But Was String At Line 1 Error

I am trying to parse a String array using Retrofit and GSON which is returned from the API: This is… Read more Gson Expected Begin_array But Was String At Line 1 Error

Android Retrofit 2 File Upload

I'm using Retrofit 2 and I want to call a web service to upload my images to my server. Server … Read more Android Retrofit 2 File Upload

How To Fix This Error Java.lang.illegalstateexception: Expected Begin_array But Was Begin_object At Line 1 Column 2 Path $

I'm implementing a restful client using Android. I have API URL, token, etc. I implement this a… Read more How To Fix This Error Java.lang.illegalstateexception: Expected Begin_array But Was Begin_object At Line 1 Column 2 Path $

No Such File Or Diectory Error In Image File Upload Using Retrofit In Android

I am developing an Android app. In my app, I am using Retrofit to upload image and pdf files to ser… Read more No Such File Or Diectory Error In Image File Upload Using Retrofit In Android

How To Send Put Request With Retrofit String And Array List Of Model I Need To Use Url Encoded

can anyone guide me how to send PUT request with this json { 'delivery_status': 'Par… Read more How To Send Put Request With Retrofit String And Array List Of Model I Need To Use Url Encoded

Retrofit Closing Response Body

I've been getting this error: A connection to ****** was leaked. Did you forget to close a res… Read more Retrofit Closing Response Body

Retrofit2 + Simplexml In Kotlin: Methodexception: Annotation Must Mark A Set Or Get Method

I want to fetch XML data from API and map it to Kotlin model object by using Retrofit2 + SimpleXML … Read more Retrofit2 + Simplexml In Kotlin: Methodexception: Annotation Must Mark A Set Or Get Method

How To Handle Retrofit Socket Timeout For Uploading Files In Android Kotlin?

var client = OkHttpClient() val builder = OkHttpClient.Builder() val gson =… Read more How To Handle Retrofit Socket Timeout For Uploading Files In Android Kotlin?

Gson Deserialize Interface To Its Class Implementation

I am using Retrofit 2.1.0 with converter-gson:2.1.0 and separately gson:2.6.2 in order to customize… Read more Gson Deserialize Interface To Its Class Implementation

Access Raw Response After Conversion

I've a backend that returns 200 HTTP code even if the request had errors: { 'error'… Read more Access Raw Response After Conversion

Java.lang.noclassdeffounderror: Okhttp3.okhttpclient$builder

In my project, I have used OkHttp(version 2.5.0) as my network request library. But few days ago, I… Read more Java.lang.noclassdeffounderror: Okhttp3.okhttpclient$builder

Retrofit Okhttp Offline Caching Not Working

I read dozens of tutorial and Stackoverflow answers to my problem but nothing is working for me! Al… Read more Retrofit Okhttp Offline Caching Not Working

Retrofit --> Java.lang.illegalstateexception: Expected Begin_array But Was Begin_object At Line 1 Column 2 Path $

None of the posts i found have helped me understand what im supposed to do. Stuck on this for quite… Read more Retrofit --> Java.lang.illegalstateexception: Expected Begin_array But Was Begin_object At Line 1 Column 2 Path $

Parsing Json Array That Contain Objects With Different Attributes With Retrofit

how can I parse JSON array that contains JSON objects without names and each object have his own at… Read more Parsing Json Array That Contain Objects With Different Attributes With Retrofit