Why does android logcat not show the stack trace for a runtime exception?

后端 未结 2 1462
你的背包
你的背包 2021-02-19 03:38

An android application that I am currently developing was crashing (fixed that), due to what should have raised an IndexOutOfBoundsException. I was accessing a string in the doI

2条回答
  •  清歌不尽
    2021-02-19 04:29

    As per fadden's suspect that external library could override uncaught exception handler, I started to investigate any possible libs. Turned out that GoogleAnalytics throttles crashes and prevents the stack trace from being displayed in logcat if you turn on enableExceptionReporting. I remove this line of code then everything gets back on track!! That could be the first time I was so happy to see crashes!!

提交回复
热议问题