Skip to content

Instantly share code, notes, and snippets.

@zmillman
Created February 21, 2015 00:28
Show Gist options
  • Save zmillman/82a95309c0831d069833 to your computer and use it in GitHub Desktop.
Save zmillman/82a95309c0831d069833 to your computer and use it in GitHub Desktop.
Can't compile subclass of com.android.volley.Request
class GsonRequest < Com::Android::Volley::Request
def deliverResponse(response)
# listener.onResponse(response)
end
def parseNetworkResponse(response)
# raise "Not implemented"
end
end
# ./build/Development-19/java/com/magoosh/prep/development/GsonRequest.java:4: error: no suitable constructor found for Request(no arguments)
# public class GsonRequest extends com.android.volley.Request {
# ^
# constructor Request.Request(String,ErrorListener) is not applicable
# (actual and formal argument lists differ in length)
# constructor Request.Request(int,String,ErrorListener) is not applicable
# (actual and formal argument lists differ in length)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment