Unhandled Exception: System.TypeLoadException: Could not resolve type with token 010000c1

LeoJHarrisLeoJHarris NZMember ✭✭
edited June 2018 in Xamarin.Forms

Anyone having or ever had an issue with installing Xamarin Forms 3.0+ (or another version) and then the app starts crashing on the .init(..) line in the android activity on start up.

I am creating a blank project and updating XF to 3.0+ and this works fine, when I start adding packages and implement this in my activity in android I eventually get the exception and only works rolling back to XF's 2.5.

Any ideas how to debug this or preferably solve this issue. I am guessing this might be to do with a reference issue with one of my packages dependencies regarding Forms.

Error below:

Unhandled Exception:

System.TypeLoadException: Could not resolve type with token 010000c1 (from typeref, class/assembly Xamarin.Forms.Xaml.XamlResourceIdAttribute, Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null)

Unhandled Exception:

Full error:

System.TypeLoadException: Could not resolve type with token 010000c1 (from typeref, class/assembly Xamarin.Forms.Xaml.XamlResourceIdAttribute, Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null)

Best Answer

Answers

  • LeoJHarrisLeoJHarris NZMember ✭✭

    @Laobu This worked for one of my projects that had this issue, for the other case this solution you mention and finding a package library my project was using was itself using an older version of Xamarin forms, once I uninstalled the package and followed this solution my app worked again.

    Clearly to do with different versions of Xamarin forms by my project and a reference library package and a simple clean and build

  • nick5454nick5454 USUniversity ✭✭

    Yes. Xamarin Maps and Forms need to be in sync. You can update the Maps which will force the Forms to update. I also did the MediaCross library also.

Sign In or Register to comment.