I am dealing with maps apiv2. And I am getting the following error while coding for Dialog Fragment class.
Error :
Avoid non-de
The easier way is to add these to the gradle:
android {
lintOptions {
checkReleaseBuilds false
}
}
Or you can add this line in each fragment
@SuppressLint("ValidFragment")
public PlaceDialogFragment(Place place, DisplayMetrics dm){
super();
this.mPlace = place;
this.mMetrics = dm;
}
Best solution is add lines in gradle simply.