Why System.MissingMethodException after updating VS for Mac?

I updated to VS 8.2.1 (build 19) for Mac the other day. Now, when I run an Android simulator for Xamarin, I get an Exception:

System.MissingMethodException
Method not found: string Xamarin.Essentials.DeviceInfo.get_Platform()

Please help!

Thanks,
Larry

Best Answers

  • JarvanJarvan Xamurai
    Accepted Answer

    What's the version of Xamarin.Essentials? Try to update the nuget package.

    Have you tried to create a new project and move the code to the new project?

  • LarryFeldmanLarryFeldman US ✭✭
    Accepted Answer

    I had to revert to Xamarin.Essentials 1.2.0. That worked! Thanks!

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai

    Try to delete all files from debug folder and obj folder from all projects. The dlls you are referencing may be not the same in new version.

    Refer to:
    https://forums.xamarin.com/discussion/127793/system-missingmethodexception

  • LarryFeldmanLarryFeldman USMember ✭✭

    Hi Jarvan. I just tried it. Unfortunately, I'm getting the same exception. Any other suggestions? Thanks!

  • JarvanJarvan Member, Xamarin Team Xamurai
    Accepted Answer

    What's the version of Xamarin.Essentials? Try to update the nuget package.

    Have you tried to create a new project and move the code to the new project?

  • LarryFeldmanLarryFeldman USMember ✭✭
    Accepted Answer

    I had to revert to Xamarin.Essentials 1.2.0. That worked! Thanks!

Sign In or Register to comment.