Volley Timeout Error

前端 未结 13 1053
清歌不尽
清歌不尽 2020-12-01 14:31

I am trying to hit a rest service using Volley.

public class AuthFunctions {
    private static final String LOGIN_URL = \"http://10.0.2.2:8080/stewayservic         


        
相关标签:
13条回答
  • 2020-12-01 15:09

    use retry policy like this

    request.setRetryPolicy(new DefaultRetryPolicy(20 * 1000, 2, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
    
    requestQueue.add(request);
    
    0 讨论(0)
提交回复
热议问题