I create a DialogFragment, and when I want to override onCreateDialog , I get the following warning:
non-annotated method overrides the method annotated with @NonNull
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { return super.onCreateDialog(savedInstanceState); }
If I want to post this annotation to my method, Android Studio will not be able to find this annotation.
Why is this happening? Thank you for your help.
source share