Android Volley MalformedURLException Bad URL

后端 未结 4 645
抹茶落季
抹茶落季 2020-12-20 11:25

After making a second network request using Volley, I always get this error. It doesn\'t seem to matter what the url I put in is. Volley always c

4条回答
  •  再見小時候
    2020-12-20 12:00

    Make Sure that you have passed the URL as the second parameter in JsonObjectRequest or StringRequest. I made the same mistake which produced the same error like what you faced.

    JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Method.POST, URL, null, ResponseListener, ErrorListener);
    

提交回复
热议问题