Unable to instantiate Fragment

后端 未结 12 2156
无人及你
无人及你 2020-12-24 06:42

Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor that is public

Is it because my Fr

12条回答
  •  猫巷女王i
    2020-12-24 07:28

    In my case, I was missing the constructor, the post from @eoghanm above helped me

    public static class MyDialogFragment extends DialogFragment {
    
        public MyDialogFragment(){
        }
    ...
    }
    

提交回复
热议问题