com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted:

前端 未结 2 1610
心在旅途
心在旅途 2020-12-20 13:13

I\'m using Volley library in Android in my application and when trying to make POST requests to our server I get the following error:

com.android.volley.NoC         


        
2条回答
  •  渐次进展
    2020-12-20 14:01

    The solution is to increase the request timeout of volley by this this line of code.

    request.setRetryPolicy(new DefaultRetryPolicy(10 * 1000, 0, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));

    above code is settings request timeout to 10 seconds.

提交回复
热议问题