You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
anonymous class derived from ErrorListener must either be declared abstract or implement abstract method onErrorResponse(VolleyError error) in ErrorListener
#54
Open
adimitorv opened this issue
Jul 15, 2016
· 5 comments
JSONObject jsonParams = new JSONObject(params);
final JsonObjectRequest jsObjRequest = new JsonObjectRequest(context, Request.Method.POST, SERVER_URL, jsonParams, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
Log.d("deletePost", "response: " + response);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.e("deletePost", "error: " + error);
}
});
VolleySingleton.getInstance(context).addToRequestQueue(jsObjRequest);
This is the error I'm getting from Androdi Studio, I can compile and run it without a problem:
anonymous class derived from ErrorListener must either be declared abstract or implement abstract method onErrorResponse(VolleyError error) in ErrorListener
The text was updated successfully, but these errors were encountered:
The fact is I can't use only the first one since I need the SimpleMultiPartRequest class for uploading a video file. At the same time I can't use only the second one since I 'm using the basic Volley JsonObjectRequest for basic http requests when logging the user ...
@Saatch just remove compile 'com.android.volley:volley:1.0.0' from your dependence and sync again.
It seems VolleyPlus has all the functionality on Volley:1.0.0 library (as name suggests)
@qadir227 Yea I figured that out recently... I tried to use Volleyplus only for multipart video uploading requests but then I changed all my other normal volley requests to Volleyplus since they re conflicting each other and removed the dependency ... it solved the problem
This is the error I'm getting from Androdi Studio, I can compile and run it without a problem:
anonymous class derived from ErrorListener must either be declared abstract or implement abstract method onErrorResponse(VolleyError error) in ErrorListener
The text was updated successfully, but these errors were encountered: