Compililation Error while using JsonObjectRequest

前端 未结 3 1299
轻奢々
轻奢々 2021-02-04 13:40

I\'m using mcxiaoke/android-volley library.Im getting compilation error as

Error:(77, 37) error: reference to JsonObjectRequest is ambiguous, both constructor 
         


        
3条回答
  •  隐瞒了意图╮
    2021-02-04 14:17

    Cast the null to string or JSONObject and it should work fine i think.

    new JsonObjectRequest(Request.Method.GET,
                getRequestUrl(10),
                (String)null,
                new Response.Listener()
    

提交回复
热议问题