Developer's crash reporter crashed his app before a single line of his code ran

A solo developer adding Sentry error reporting to his Android workout app WhyRep found the app crashing 100% of the time on launch after installation. Despite carefully gating the Sentry SDK behind a DSN check in his Application class, the app died before that code ever executed. The root cause was a ContentProvider auto-injected into the Android manifest by the Sentry SDK itself, which initializes Sentry before the Application class runs. Since no DSN was set in the manifest metadata — the developer stored it in a gitignored local.properties file — Sentry threw an exception during process startup. The fix required just one line to disable Sentry's auto-initialization via the manifest.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in