locked
Upgrade to Xamarin.Android 9.0.0.18 gives error: No suitable constructor found for TypefaceSpan RRS feed

  • Question

  • User374879 posted

    Yesterday I upgraded Xamarin.Android to 9.0.0.18 on my mac, since then I get the error: No suitable constructor found for TypefaceSpan(typeface). When I upgrade upgrade to the alpha version 9.1.0.12 then I doesn't get this error anymore but in this version I'm not able to deploy my app to my phone.

    If I don't want to get this error and get the app running on my device I need to upgrade clean and rebuild, downgrade and then deploy to my phone (then it works only first time). This is time consuming and doesn't look like the way to go.

    The current error:

    Anybody any idea on how to fix it

    Kind regards airkingkiller

    Thursday, August 23, 2018 8:18 AM

All replies

  • User364855 posted

    @airkingkiller

    What's the typeface are you using in the TypefaceSpan() is it a string or Parcel?

    Friday, August 24, 2018 2:24 AM
  • User374879 posted

    @BillyLiu public CustomTypeFaceSpan(string family, Typeface type) : base(family)

    This is my constructor, But after some more debug I found out this issue only accure when I open a .xaml than I need to clean install vs and than its fixed till the next time I open a xaml

    Now there has been a update today (9.0.0.19) hope this will fix it

    Friday, August 24, 2018 6:11 AM
  • User364855 posted

    I'm glad you have found a solution. Please help to mark a reply as answer if it’s ok for you, which could also benefit others who encounter similar issues in this community. Thanks for your cooperation.

    Monday, August 27, 2018 9:23 AM