android - This class should provide a default constructor -


when trying generate signed apk obtaining error message:

error:(24) error: class should provide default constructor (a public constructor no arguments) (es.yepwarriors.yepwarriors.adapters.useradapter) [instantiatable]

in class:

public class useradapter extends arrayadapter<parseuser> {     protected context mcontext;     protected list<parseuser> musers;      public useradapter(context context, list<parseuser> users){         super(context, r.layout.message_item, users);         mcontext = context;         musers = users;     }     ... 

i add constructor fix error with:

public useradapter(){     super(null,0); } 

but don´t understand origin of problem. can explain me? thanks.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -