Trouble with logging my data with crashlytics

后端 未结 4 1547
萌比男神i
萌比男神i 2020-12-14 00:51

I\'m trying to get logs with some service data with Crashlytics in my android application. But I don\'t see my logs in dashboard. I used this:

String myLog =         


        
4条回答
  •  生来不讨喜
    2020-12-14 01:32

    Instead of catching the exception and logging it, you can instead use RuntimeExceptions:

    throw new RuntimeException("Test crash");

    Android Studio will not require you to catch these, thus having the app terminate and upload the report immediately.

提交回复
热议问题