Top "Retrofit2" questions

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

Add cookies to retrofit 2 request

I need to add cookies with retrofit 2.0. If i understand correct, cookies - the same as headers. this cookies must …

android cookies retrofit retrofit2
Android:dynamically pass model class to retrofit callback

In retrofit to map json response to pojo usually we do this @POST Call<User> getDataFromServer(@Url String …

android retrofit retrofit2 pojo
How to set timeout in Retrofit-2.0+ android

I referred this link but I can't seem to implement for mine I am using compile 'com.squareup.retrofit2:retrofit:2.0.2…

android retrofit retrofit2
NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform

I'm using Retrofit2 library. I already tried to update latest version : Retrofit2, Gson, Rxjava, OKHttp, HttpLoggingInterceptor ... in build.gradle file …

java android retrofit2 okhttp3
Retrofit 2 can't upload a file with two additional separate string parameters

Read edit at bottom of the question for possible alternative solution until the solution is found.

android file-upload retrofit android-networking retrofit2
How to parse list of JSON objects surrounded by [] using Retrofit and GSON?

I've created a simple REST endpoint: http://<server_address>:3000/sizes This URL returns a very simple response containing …

java json rest gson retrofit2
Android Retrofit2 Refresh Oauth 2 Token

I am using Retrofit and OkHttp libraries. So I have Authenticator which authanticate user if gets 401 response. My build.gradle …

android oauth-2.0 retrofit2 okhttp
Retrofit - android.os.NetworkOnMainThreadException

I am using Retrofit 2 to get json and parse it to POJO. My purpose is getting one value of that …

java android retrofit retrofit2
Retrofit 2 - Elegant way of adding headers in the api level

My Retrofit 2 (2.0.2 currently) client needs to add custom headers to requests. I'm using an Interceptor to add these headers to …

java header annotations retrofit retrofit2
Getting Request body content using Retrofit 2.0 POST method

I have a requirement to get a request body and to perform some logic operations with Retrofit 2.0 before doing enque …

android request okhttp retrofit2 jsonresponse