Maui Hot Reload and Styles do not work

Lloyd Sheen 1,391 Reputation points

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"/>  

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,673 questions
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,960 questions
{count} votes