Subscribe to our YouTube Channel for more Videos

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.


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.


Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.