You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not configure or reference the sentry package anywhere (don't change anything in the code).
Build and Deploy either a release build, or a Debug build with trimming enabled in the Android options
Expected Result
The app should launch normally without issue.
Actual Result
The app crashes during launch. If this is done in a debug build then the following exception is observed:
Java.Lang.RuntimeException
Message=Unable to get provider io.sentry.android.core.SentryInitProvider: java.lang.IllegalArgumentException: DSN is required. Use empty string or set enabled to false in SentryOptions to disable SDK.
The text was updated successfully, but these errors were encountered:
This issue isn't a big problem on it's own. Once sentry is configured properly it goes away. Or the package can just be removed. However, it did cause me issues when I was trying to reproduce a different trimming related problem: #3680
When I tried to simplify my project I inadvertently caused this error with similar symptoms as 3680, so i took me a while to understand what was going on. In any case, simply including a package should not cause a crash.
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.0
OS
Android
SDK Version
4.12.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
Expected Result
The app should launch normally without issue.
Actual Result
The app crashes during launch. If this is done in a debug build then the following exception is observed:
Java.Lang.RuntimeException
Message=Unable to get provider io.sentry.android.core.SentryInitProvider: java.lang.IllegalArgumentException: DSN is required. Use empty string or set enabled to false in SentryOptions to disable SDK.
The text was updated successfully, but these errors were encountered: