Setting android layout editor to wear round 454x454 causes unrecoverable error.

I was trying to build a wear app, and changed the layout device to wear round 454x454, and I immediately got this error, saying there was a problem rendering the document. I cannot find a way to change the layout to any other device, rendering it useless. Is there any fix, even if I have to modify a temp file?

System.InvalidOperationException: Resource not found: wear-frame-round-454.png
at Xwt.Backends.ImageBackendHandler.LoadFromResource(Assembly asm, String name) in E:\A_work\53\s\External\xwt\Xwt\Xwt.Backends\ImageBackendHandler.cs:line 46
at Xwt.Drawing.ResourceImageLoader.LoadImage(String fileName) in E:\A_work\53\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 1016
at Xwt.Drawing.Image.LoadImage(ImageLoader loader, String fileName, ImageTagSet tagFilter) in E:\A_work\53\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 193
at Xwt.Drawing.Image.FromResource(Assembly assembly, String resource) in E:\A_work\53\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 184
at Xwt.Drawing.Image.FromResource(Type type, String resource) in E:\A_work\53\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 154
at Xamarin.AndroidDesigner.Styles.GetWearBack(String resName) in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 366
at Xamarin.AndroidDesigner.Styles.GetWearRoundBack(Int32 dimen, Int32 chinHeight) in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 351
at Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.SetupWearBack(DrawingContext context) in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:line 163
at Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.RenderDesignerItemVisual(DesignerItem item) in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:line 115
at Xamarin.Designer.Windows.WpfSurfaceRenderer.QueueRender(DesignerItem item) in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 367
at Xamarin.Designer.Windows.WpfSurfaceRenderer.UpdateAllDesignerItems(DesignerItem item) in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 472
at Xamarin.Designer.Windows.WpfSurfaceRenderer.QueueRenderWorld() in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 357
at Xamarin.Designer.Windows.WpfSurfaceRenderer.OnViewportChanged() in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 85
at Xamarin.Designer.Windows.WpfSurfaceRenderer.AdjustNativeViewport(Rectangle value, Boolean animated) in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 244
at Xamarin.Designer.Windows.WpfSurfaceRenderer.SetViewport(Rectangle newViewport, Boolean animated) in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 207
at Xamarin.Designer.DesignerSurface.ZoomFit(Boolean animate) in E:\A_work\2\s\Xamarin.Designer\Xamarin.Designer\DesignerSurface.cs:line 1937
at Xamarin.AndroidDesigner.AndroidDesignerSurface.HandleSessionImageChanged(Object sender, EventArgs e) in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSurface.cs:line 228
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Xamarin.AndroidDesigner.AndroidDesignerSession.OnImageChanged() in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line 1497
at Xamarin.AndroidDesigner.AndroidDesignerSession.HandleRendered(Object sender, EventArgs e) in E:\A_work\2\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line 1334
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Posts

  • StefanoPigozzoStefanoPigozzo USMember

    The same for me with an other form factor...

    Have you solved in some manner?
    Thank you

    System.InvalidOperationException: Resource not found: wear-frame-round-390.png
    at Xwt.Backends.ImageBackendHandler.LoadFromResource(Assembly asm, String name) in E:\A_work\1824\s\External\xwt\Xwt\Xwt.Backends\ImageBackendHandler.cs:line 46
    at Xwt.Drawing.ResourceImageLoader.LoadImage(String fileName) in E:\A_work\1824\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 1016
    at Xwt.Drawing.Image.LoadImage(ImageLoader loader, String fileName, ImageTagSet tagFilter) in E:\A_work\1824\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 193
    at Xwt.Drawing.Image.FromResource(Assembly assembly, String resource) in E:\A_work\1824\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 184
    at Xwt.Drawing.Image.FromResource(Type type, String resource) in E:\A_work\1824\s\External\xwt\Xwt\Xwt.Drawing\Image.cs:line 154
    at Xamarin.AndroidDesigner.Styles.GetWearBack(String resName) in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 366
    at Xamarin.AndroidDesigner.Styles.GetWearRoundBack(Int32 dimen, Int32 chinHeight) in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 351
    at Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.SetupWearBack(DrawingContext context) in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:line 163
    at Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.RenderDesignerItemVisual(DesignerItem item) in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:line 115
    at Xamarin.Designer.Windows.WpfSurfaceRenderer.QueueRender(DesignerItem item) in E:\A_work\1898\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line 367
    at Xamarin.AndroidDesigner.AndroidDesignerSurface.HandleSessionImageChanged(Object sender, EventArgs e) in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSurface.cs:line 232
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at Xamarin.AndroidDesigner.AndroidDesignerSession.OnImageChanged() in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line 1548
    at Xamarin.AndroidDesigner.AndroidDesignerSession.HandleRendered(Object sender, EventArgs e) in E:\A_work\1898\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line 1368
    --- End of stack trace from previous location where exception was thrown ---
    at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Sign In or Register to comment.