dotnet / maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)
https://dot.net/maui
MIT License
3.15k stars 1.28k forks source link

Run NativeEmbeddingDemo.Droid Demo Error #502

Open terry117 opened 3 months ago

terry117 commented 3 months ago

System.InvalidOperationException Message=BindableObject was not instantiated on a thread with a dispatcher nor does the current application have a dispatcher.

0x9F in Microsoft.Maui.Controls.DispatcherExtensions.FindDispatcher at D:\a\_work\1\s\src\Controls\src\Core\DispatcherExtensions.cs:47,4    C#
0x6 in Microsoft.VisualStudio.DesignTools.MauiTap.MauiHelpers.GetDispatcher C#
0xC in Microsoft.VisualStudio.DesignTools.MauiTap.MauiHelpers.GetDispatcher C#
0xC in Microsoft.VisualStudio.DesignTools.MauiTap.ElementSelectionManager.HandleAdviseTreeMutationRequest   C#
0x1 in Microsoft.VisualStudio.DesignTools.MauiTap.ElementSelectionManager.<.ctor>b__7_0 C#
0x7 in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.<>c__DisplayClass34_0<Microsoft.VisualStudio.DesignTools.TapContract.TapOM.    C#
0x13 in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.HandleMessage<Microsoft.VisualStudio.DesignTools.TapContract.TapOM.EmptyRequestInfo, Microsoft.VisualStudio.DesignTools.TapContract.TapOM.ResponseWithError>  C#
0xD in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.<>c__DisplayClass35_0<Microsoft.VisualStudio.DesignTools.TapContract.TapOM.EmptyRequestInfo,Microsoft.VisualStudio.DesignTools.TapContract.TapOM.  C#
0x6E in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.ProcessInboundMessage C#
0xC in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.   C#
0x9 in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.WaitableActionsList.   C#
0x6D in Microsoft.VisualStudio.DesignTools.TapContract.Networking.ProtocolHandler.ActionThread  C#
0x3C in System.Threading.Thread.StartHelper.RunWorker   C#
0x28 in System.Threading.Thread.StartHelper.Run C#
0xF in System.Threading.Thread.StartCallback    C#
terry117 commented 3 months ago

Run NativeEmbeddingDemo Droid, Report the error above

terry117 commented 3 months ago

image