Android.Views.WindowManagerBadTokenException at at AndroidHUD.AndHUD+<>c__DisplayClass29_0.<SetupDialog>b__0 (System.Object state) [0x000db] in <a4dd75a72c8244ad8bdba54b31441bb5>:0

Shailey Lalwani 1 Reputation point
2021-03-19T12:36:02.083+00:00

Xamarin Forms application on Android device crashes with this error.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shailey Lalwani 1 Reputation point
    2021-03-22T05:51:20.853+00:00

    Hi @JessieZhang-MSFT , I can't share code snippet because of some security policy, above problem is been reported on client user device in Crash Analytical tool, so exactly don't have steps to reproduce. Below is the list of Nuget packages used in the application if that can help:
    <PackageReference Include="Acr.UserDialogs" Version="7.1.0.470" />
    <PackageReference Include="AiForms.Layouts" Version="1.1.0" />
    <PackageReference Include="AWSSDK.S3" Version="3.3.18.2" />
    <PackageReference Include="Bugsee.Xamarin" Version="1.10.5" />
    <PackageReference Include="DLToolkit.Forms.Controls.FlowListView" Version="2.0.10" />
    <PackageReference Include="modernhttpclient-updated" Version="3.3.4" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
    <PackageReference Include="PCLStorage" Version="1.0.2" />
    <PackageReference Include="Rg.Plugins.Popup" Version="2.0.0.5" />
    <PackageReference Include="SkiaSharp.Views.Forms" Version="1.68.0" />
    <PackageReference Include="sqlite-net-pcl" Version="1.4.118" />
    <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.8.0" />
    <PackageReference Include="Xam.Plugin.Media" Version="4.4.10-beta" />
    <PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />
    <PackageReference Include="Xamarin.Forms" Version="4.5.0.617" />
    <PackageReference Include="XLabs.IoC" Version="2.0.5782" />
    <PackageReference Include="XLabs.Platform" Version="2.0.5782" />