MissingMethodException ‘Xamarin.Forms.Device.get_RuntimePlatform’ in Xamarin.Android

There are times when you might get the System.MissingMethodException ‘Xamarin.Forms.Device.get_RuntimePlatform’ when working with the Xamarin.Forms application and using the method Device.RuntimePlatform to identify the device platform.

image

Device.RuntimePlatform is the preferred way to find the platform that the application is running on from Xamarin.Forms 2.3.4. You need to ensure that both the PCL and the Android project has the latest Xamarin.Forms installed within the project. You can update it from the NuGet Package Manager.

image

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message “WorkbookNotSupported – The file you selected cannot be opened because it...
  • .NET
  • December 17, 2022
In this post, you’ll learn about the error message “SpecifiedRangeNotFound – The requested range does not exist in the sheet.”...
  • .NET
  • December 17, 2022
In this post, you’ll learn about the error message “SheetRangeMismatch – The sheet provided as the sheet argument is not...
  • .NET
  • December 17, 2022