Unable to invoke no-args constructor for Product.class

后端 未结 4 699
梦毁少年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条回答
  •  梦毁少年i
    2021-01-19 15:43

    Add default constructor for all classes. Example:

    public class Product{
    
        public Product(){
        }
    
    }
    

提交回复
热议问题