Fragment null must be a public static class to be properly recreated from instance state

前端 未结 3 1909
渐次进展
渐次进展 2020-12-12 02:47

I am not able to figure out why my app crashes when getSupportFragmentManager() is called.I have used similar code in other apps to create alert dialogs without any issues.p

3条回答
  •  一生所求
    2020-12-12 03:15

    check which type of Fragment you have in your imports whether your'e using android.support.v4.app.Fragment or android.os.Fragment.

提交回复
热议问题