Category "okhttp"

Could not find org.junit.jupiter:junit-jupiter:

I was trying to learn how to use OkHTTP. I importetd the library to my project but when i compile the code it brings out this error. Could not find org.junit.ju

How to make "inappropriate blocking method call" appropriate?

I am currently trying to leverage kotlin coroutines more. But I face a problem: when using moshi or okhttp inside these coroutines I get a warning: "inappropri

Edited: Retrofit and CompletableFuture, is there a way to not rely on the underlying connection pool?

Original question: OkHttp, is there a way to not rely on a connection pool? Hey OkHttp users and/or contributors! Is there a way to use an OkHttpClient withou

Picasso 2.5.2 does not load a local image

I am using Picasso 2.5.2 to use it with OkHttp 2.5.0 The code in onCreate() is like below: File mypath = new File(getFilesDir().getAbsolutePath()+"/"+ date +

Getting memory leaks with okhttp

When I make a get request to an API, over and over again I see that every request the memory goes up and up until 1gb of ram usage. closing the response and au

FATAL EXCEPTION: OkHttp Dispatcher

I'm using the OkHttp library in my android app to make web requests to a weather API. I've already implemented my code and I'm getting a FATAL EXCEPTION when do

Why cant I deploy on an App with certification on an lower Api version?

I'm trying to deploy my App on another phone. I already installed the cert on the new phone and I'm still facing this problem. java.security.cert.CertPathValida

Cancel all Previous Api call in Android - Retrofit - Using module

I have created below module in my android application. val appNetworkModule = module { // Dependency: OkHttpClient single { var okHttpClient=OkHttpClient.Bu

Error: Program type already present: okhttp3.Address

I have added a new jar file as a module and faced with the above issue. I have already implemented okHttp in my apps gradle file. Seems like the jar file also i

How to use OKHTTP to make a post request?

I read some examples which are posting jsons to the server. some one says : OkHttp is an implementation of the HttpUrlConnection interface provided by Ja

How to find ping/keepalive being sent in okhttp websockets

I'm creating a secured websocket connection between my server using okhttp library. But my websocket connections keep getting closed after 3 minutes. So I added

Does OkHttp support accepting self-signed SSL certs?

I'm working for a customer who has a server with self-signed SSL cert. I'm using Retrofit + CustomClient using wrapped OkHttp client: RestAdapter restAdapter

Implementation OKHTTP doesn't work on Android project

i followed this tutorial: https://www.journaldev.com/13629/okhttp-android-example-tutorial But when i try to start the project give me this error: Execution fai