I'm currently working on an android app, and it suddenly gave me these errors (it used to work like this, which is the strange part):
Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead
and
This fragment should provide a default constructor (a public constructor with no arguments)
This is the code:
public DatePickerFragment(ProjectOverviewFragment list){
this.list = list;
Calendar cal = Calendar.getInstance();
date = cal.get(Calendar.DAY_OF_MONTH)+"-"+cal.get(Calendar.MONTH)+"-"+cal.get(Calendar.YEAR);
}