System.TypeInitializationException: An exception was thrown by the type initializer

I followed the quickstart xamarin forms code that I downloaded from azure exactly but, i run into the following error when I try to run the iOS project:

System.TypeInitializationException: An exception was thrown by the type initializer

I've scoured the web and found a few others who have run into this issue but, none of their suggestions have worked for me.

Any idea what I could be missing?

Best Answer

Answers

  • DivyeshBhatt.3318DivyeshBhatt.3318 USMember ✭✭

    Which static field you have to remove and from which manager class?
    I'm facing the same issue can you please help me ?

  • tmontez36tmontez36 USMember ✭✭

    DivyeshBhatt.3318,
    I scrapped xamarin because of so many long standing issues like this one.
    I'm using web-based tools for my mobile development now so, I honestly don't recall what I removed (original post was 2016)
    Sorry.

  • TheDanishTheDanish Member
    edited March 2019

    Try uncomment your code in .Android App class including static members that run code in their constructors

Sign In or Register to comment.