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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -