Could not find Fragment constructor

前端 未结 3 1436
谎友^
谎友^ 2020-12-23 19:25

I am facing the issue on some devices and getting an error on my crash analytics. A lot of user devices are facing this issue, but on my device it\'s working fine.

3条回答
  •  一个人的身影
    2020-12-23 19:41

    A newer alternative to communicate between an Activity and a Fragment, thus allowing that the Fragment can have an empty constructor would be the use of ViewModels.

提交回复
热议问题