Maui Hot Reload and Styles do not work

Lloyd Sheen 1,476 Reputation points
2022-09-22T15:25:33.497+00:00

Ok I have a simple Style. It just applies a Margin to the type of control (no Key on Style).

                <Style TargetType="{Type VerticalStackLayout}">  
					<Setter Property="Margin" Value="0,0,0,150"/>  
                </Style>   

Execute the app in emulator. Look at the XAML Live Preview. Then apply a change to the Value.

I have gotten so many errors when I change the value. The latest is

Java.Lang.NoSuchMethodError: 'no non-static method "Landroidx/cardview/widget/CardView;.getScrollCaptureHint()I"'

The above error occurred when doing a simple change to one of the numeric values in the Margin.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
{count} votes