Android 4/5 SSL Fix over Google Play

Knowledge Base Entry: #18
^Top
<< Back
Mobile-Menu










Android 4/5 SSL Fix over Google Play
Category: Android/Fixes
Author: Bugfish
Created at: 2020-08-15 03:41:11
Modified at: 2025-09-19 17:25:34
Directs Hits: 798

This may fix this error ---
javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x6abff398:Failure in SSL library, usually a protocol error error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:7440x684dfce0:0x00000000)

Add this to your Class


//////////////////////////////////////////
// Use Google Play Services For Android 4.x/5 Download Connections over SSLtry {
ProviderInstaller.installIfNeeded(MainActivity.this);
 

Add this to your build.gradle File [Module] (inside dependencies)

/* PLAY SERVICES AUTH LIBRARY FOR ANDROID BELOW 6 TO USE HTTPS TLS */
implementation 'com.google.android.gms:play-services-auth:18.1.0'
 

Caution: I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
This Website is using Session Cookies for Site Functionality.