Description
A customer reported that, in their Android application,
after migrating their .NET MAUI app to .NET 9,
and upgrading to the Sentry MAUI SDK 5.16.2 (updated to 5.16.3),
the JNI Crashes showing up in the Google Play Console.
These JNI crashes only occur in builds with Sentry.
Setup:
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseSentry(options =>
{
options.Dsn = "SENTRY_DSN_HERE";
options.TracesSampleRate = 0d;
options.StackTraceMode = StackTraceMode.Enhanced;
options.MinimumEventLevel = LogLevel.None;
options.AutoSessionTracking = true;
options.SetBeforeSend(OnBeforeSend);
});
return builder.Build();
}
- .NET SDK 9.0.300
- .NET Runtime 9.0.5
- Workloads
- android - 35.0.105
- ios - 26.0.9783
- maui-android - 9.0.120
- maui-ios - 9.0.120
- Android Target: SDK 35
The issue occurs on various Android device models and OS versions.
Description
A customer reported that, in their Android application,
after migrating their .NET MAUI app to .NET 9,
and upgrading to the Sentry MAUI SDK 5.16.2 (updated to
5.16.3),the JNI Crashes showing up in the Google Play Console.
These JNI crashes only occur in builds with Sentry.
Setup:
The issue occurs on various Android device models and OS versions.