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 “FileOpenAccessDenied – You do not have permissions to open this file...
  • .NET
  • December 3, 2024
You might have had a situation where your code once worked fine in ASP.NET application but now throws the below...
  • .NET
  • December 3, 2024
C# uses the flower bracket “{” and “}” to identify the block or scope of the function or program ....
  • .NET
  • December 3, 2024