Xamarin.Forms Visual Studio 2019 Exception TextAppearance attribute

RubenGlamRubenGlam Member ✭✭
edited April 8 in Visual Studio

Hi, I have a project using Xamarin.Forms 4.0prev8 which was working fine in Visual Studio 2017 but i just installed the new version of IDE (VS 2019) and it don't work. Error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

04-08 09:08:36.126 E/mono-rt (27886): [ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Java.Lang.IllegalArgumentException: This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant).

I tried remove visual=material from my button and the app have worked good. What i can do for use material?

Thanks you.

Sign In or Register to comment.