Rejecting re-init on previously-failed class in OkHttp

While reading the info message, it gives me an idea about this Conscrypt and did a research and found out that I need to install conscrypt to my gradle.app

implementation 'org.conscrypt:conscrypt-android:2.2.1'

and it works.


OkHttp is compatible with the Conscrypt security library, but using it is optional. The stack trace is scary, but I think it is just a warning telling you that the Conscrypt dependency was not found. In this case, OkHttp should fall back to your platform's default TLS implementation.

From OkHttp's README:

OkHttp uses your platform's built-in TLS implementation. On Java platforms OkHttp also supports Conscrypt, which integrates BoringSSL with Java. OkHttp will use Conscrypt if it is the first security provider:

Security.insertProviderAt(Conscrypt.newProvider(), 1);

So long story short, if your network requests are working, it is probably safe to ignore this stack trace.

Tags:

Android

Okhttp