Closed Hugo-Persson closed 2 years ago
Hi Hugo, Would you mind sharing the NuGet packages that you're using and their versions?
Additionally, what happens if you add the following code on your main activity?
_ = new byte[2].AsMemory();
When I add the line no error is generated and it is referring to
public static Memory
I am using this sentry NuGet packages
<PackageReference Include="Sentry.Xamarin.Forms">
<Version>1.3.1</Version>
</PackageReference>
I see.
Which version of Xamarin Forms are you using and are you running it with linker?
Additionally, could you try to add the NuGet package System.Text.Json
and see if the problem fades away?
If possible, could you upload a small repro project containing the problem? That would help us a lot to investigate the problem.
I solved this issue by updating my project from using Portable Class Libraries to .NET Standard
Environment
How do you use Sentry? sentry.io
Which SDK and version? Sentry.Xamarin.Forms 1.3.1
Steps to Reproduce
Expected Result
I expected the exception to be reported to Sentry.
Actual Result
The exception was not reported and when I checked the logs it said
If I add the options.DisableOfflineCaching(); in the init it works. This article https://docs.sentry.io/platforms/dotnet/guides/xamarin/troubleshooting/ explains how to fix it on iOS but not on Android.