Here is the section of the code , basically i am trying to make a meme sharing app :
private void loadMeme()
{
// Instantiate the RequestQueue.
RequestQueue queue = Volley.
newRequestQueue(this);
String url ="
https://meme-api.herokuapp.com/gimme";
// Request a string response from the provided URL.
JsonObjectRequest JsonObjectRequest = new JsonObjectRequest(Request.Method.
GET, url,(String)null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
// Display the first 500 characters of the response string.
// Log.d("success Request",response.substring(0,500));
String url = null;
try {
url = response.getString("url");
} catch (JSONException e) {
e.printStackTrace();
}
ImageView memeImageView = (ImageView) findViewById(R.id.
memeImageView);
Glide.with(this).load(url).into(memeImageView); }
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
//Throwable e = null;
//Log.d("error response: ", Objects.requireNonNull(e.getLocalizedMessage()));;
}
});
Glide.with(this).load(url).into(memeImageView); is the line which is showing this error message