Crashlytics with StrictMode enabled (detect all) gives “untagged socket detected”

后端 未结 2 1703
无人及你
无人及你 2021-01-21 14:24

I\'ve tried adding Crashlytics to my app, which already has StrictMode enabled with detectAll(). The result was Untagged socket dete

2条回答
  •  攒了一身酷
    2021-01-21 15:05

    Api 28 has introduced:

    public StrictMode.VmPolicy.Builder penaltyListener (Executor executor,
                    StrictMode.OnVmViolationListener listener)
    

    So at least you can listen for specific violations (like UntaggedSocketViolation) and choose to ignore them. Of course, it would be better if Crashlytics were to tag their sockets appropriately.

提交回复
热议问题