Thursday 15 September 2011

android - Compililation Error while using JsonObjectRequest -


I am using the mcxiaoke / android-volley library. I'm getting the compilation error as

  Error: (77, 37) Error: The reference to JsonObjectRequest is ambiguous, JsonObjectRequest and constructor JsonObjectRequest (int, string, JSONObject, listener & lt; JSONObject In both JsonObjectRequest (int, string, string, listener & lt; JSONObject & gt;) JsonObjectRequest match, this is my code. I do not know whether Any help appreciated  
  JsonObjectRequest request = New JsonObjectRequest (Request.Method.GET, getRequestUrl (10), blank, new response.List; JSONObje Ct & gt; () {@Override Public Zero Responsibility (JSONObject Response) {}}, New Response. Error Line () {@ Override Public Wide On Arterosports (Volume Error Error) {}});  

Empty the string or JSONObject and it should work properly I think < / P>

  New JsonObjectRequest (Request.Method.GET, getRequestUrl (10), (string) empty, new response.List; JSONObject & gt; ()  
< / Div>

No comments:

Post a Comment