I have a Fragment named Fragment_scheduled_newdetail
and following is a constructor I am passing to this Fragment when launching, I get the following error:
Error:Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]
This seems to happen in Android Studio only (I am porting this project from Eclipse, no issue in Eclipse)
When I try to create a app in release
mode
public Fragment_scheduled_newdetail(BlockInfo blockToDisplayT) {
super();
this.blockToDisplay = blockToDisplay;
}
If I generate the APK in debug
mode, it works fine. (release
mode will fail)