Volley onErrorResponse Give NullPointerException

后端 未结 3 1534
抹茶落季
抹茶落季 2021-01-13 17:39

i try volley library in my android application

this is my log

    10-31 14:30:09.277: E/AndroidRuntime(22916): java.lang.NullPointerException
10-31 1         


        
3条回答
  •  太阳男子
    2021-01-13 17:58

    Apply this code hope that this will help

    @Override public void onErrorResponse(VolleyError volleyError) {

      Log.v("VolleyError",volleyError.getMessage);
    
    });
    

    This will print error in your log

提交回复
热议问题