Everything works fine in Android version 9 (Mobile phone), but while running on "Samsung Galaxy Tab E SM-T561" android version "4.4.4" it shows error
"Javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: Failure in SSL library, usually a protocol error".
I am using Retrofit2 library
Code I have used.
public static Retrofit getApiClient()
{
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.connectTimeout(1, TimeUnit.MINUTES)
.readTimeout(30, TimeUnit.SECONDS)
.writeTimeout(15, TimeUnit.SECONDS)
.build();
if (retrofit == null){
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.client(okHttpClient)
.addConverterFactory(GsonConverterFactory.create()).build();
}
return retrofit;
}