Unable to invoke no-args constructor for Product.class

后端 未结 4 682
梦毁少年i
梦毁少年i 2021-01-19 14:46

I am Using GSON and Volley library for networking in my android application but while converting the Json response to Model classes using Gson i am getitng the following err

4条回答
  •  囚心锁ツ
    2021-01-19 15:25

    problem solved, I am doing a foolish call To Gson because i am obtaining a Product class that contains list of other Classes(Result.class etc) but i am sending Product[].class to Gson to convert Hence it thrown exception.

提交回复
热议问题