Compililation Error while using JsonObjectRequest

前端 未结 3 1311
轻奢々
轻奢々 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:27

    You just used null reference.

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

    its work for me

提交回复
热议问题