Crashlytics Fabric : Failed to execute task

前端 未结 12 1810
暖寄归人
暖寄归人 2020-12-20 11:04

I\'ve been having an issue and I don\'t know how to fix it.

My project use crashlytics, but it\'s always crash and not sent report. I have a TimeoutException:

<
12条回答
  •  庸人自扰
    2020-12-20 11:35

    This issue drove me crazy still in 2019, but I think I finally figured out, what did the exception cause.

    I followed all the setup instructions given in the official firebase documentation, but when I tested my solution I didn't get any report on Firebase Crashlytics admin, because of the TimeoutException.

    The reason was in my case, that I triggered the Exception in my main activity's onCreate() or onResume() methods. When I let my app at the first start just run without exception, then later I started to get the reports without any error, so I think it's important, that at the first start the app shouldn't throw any exception in the hook methods.

    Hope my experience helped.

提交回复
热议问题