Svg.Skia: Cannot create an instance of

Hi @wieslawsoltes!

I tried to upgrade to 11.0.0-preview5 but every time I try to create a new SvgImage I get the following exception:

'The type initializer for 'Avalonia.Svg.Skia.SvgImage' threw an exception.'
MethodAccessException: Attempt by method 
'Avalonia.Svg.Skia.SvgImage..cctor()' to access method 
'Avalonia.AvaloniaProperty.Register<Avalonia.Svg.Skia.SvgImage,Avalonia.Svg.Skia.SvgSource>(System.String, Avalonia.Svg.Skia.SvgSource, Boolean, Avalonia.Data.BindingMode, System.Func`2<Avalonia.Svg.Skia.SvgSource,Boolean>, System.Func`3<Avalonia.AvaloniaObject,Avalonia.Svg.Skia.SvgSource,Avalonia.Svg.Skia.SvgSource>, System.Action`2<Avalonia.AvaloniaObject,Boolean>)' failed.

Any idea about what’s going on?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments