Top "Retrofit2" questions

Retrofit2 is the second version of the type-safe REST client Retrofit for Android and Java.

Retrofit2.0 gets MalformedJsonException while the json seems correct?

I am using retrofit:2.0.0-beta4 for my android app. I tried to add a user with Retrofit, the user is …

android json gson retrofit retrofit2
Retrofit and OkHttp basic authentication

I am trying to add basic authentication (username and password) to a Retrofit OkHttp client. This is the code I …

android retrofit2 okhttp
Parse JSON array response using Retrofit & Gson

Here is my JSONArray Response from Web service: [ { "sponsors": [ { "leg_id": "NYL000067", "type": "primary", "name": "AUBRY" }, { "leg_id": "NYL000171", "type": "…

android json gson retrofit2
How can I return String or JSONObject from asynchronous callback using Retrofit?

For example, calling api.getUserName(userId, new Callback<String>() {...}); cause: retrofit.RetrofitError: retrofit.converter.ConversionException: com.google.gson.…

android retrofit retrofit2
Unable to create call adapter for io.reactivex.Observable

I'm going to send a simple get method to my server(it is Rails app) and get the result using …

retrofit rx-java retrofit2 rx-android rx-java2
Retrofit Uploading multiple images to a single key

I am using Retrofit to upload images to my server. Here I need to upload multiple images for a single …

android multipartform-data retrofit2 okhttp
Set dynamic base url using Retrofit 2.0 and Dagger 2

I'm trying to perform a login action using Retrofit 2.0 using Dagger 2 Here's how I set up Retrofit dependency @Provides @Singleton …

android dagger-2 retrofit2
Custom converter for Retrofit 2

I have to handle a dynamic JSON responses. Before, I was using classes and annotations as follows: public class ChatResponse { @…

android json converter retrofit2
Retrofit - Multipart request: Required MultipartFile parameter 'file' is not present

I'm trying to send file on server using Retrofit2. I do everything according documentation, but always get 400 server error. I'm …

android retrofit multipartform-data multipart retrofit2
Disable SSL certificate check in retrofit library

I am using retrofit in android to connect with server. public class ApiClient { public static final String BASE_URL = "https://…

java android ssl kotlin retrofit2