Trying to fetch the api to get the data by using the library of retrofit2 and gson. I successfully get data from api in newer android versions but when i try to call the api from older versions like Android 4.4 then it is showing me an error "javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb8daff20: 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:741 0x96ef5926:0x00000000)" in the toast message and debugging. Directly it jumps to this code of retrofit
@Override
public void onFailure(Call<Prayer> call, Throwable t) {
Toast.makeText(getApplicationContext(),t.getMessage(),Toast.LENGTH_LONG).show(); //Showing me an error on this line.
}
User contributions licensed under CC BY-SA 3.0