Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException

Building/Deploying a Xamarin app to a physical/real device can sometimes fail with the following error message:

java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_22 or Xamarin.Android.Platform

A lot of people explained that the issue could be down to the Target Version of the app, however I tried this and it seemed to make no change to the problem that I had encountered.

Another odd symptom of the error I was getting is that my phone would seemingly disconnect from the computer and adb would no longer detect it until I disconnected and reconnected the device.

OnceĀ I'd reconnected the device, I'd found that changing the Solution Configuration/Build Mode from Debug to Release. For some reason, you can't run the Debug version of a Xamarin app on a physical device.

In summary, try changing theĀ Target Version of the app, and if that doesn't work... Make sure you have the Solution Configuration/Build Mode set to Release instead of Debug and it should now execute correctly.


Published at

Tags: Xamarin,Android

Luke Alderton

Comments

Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By Raymondpef on MVC forms in Umbraco
20 Nov 2018, 23:58 PM
By svetikNoupt on MVC forms in Umbraco
20 Nov 2018, 19:44 PM
By Lestersep on MVC forms in Umbraco
17 Nov 2018, 13:55 PM
By nseo-sw.men on MVC forms in Umbraco
17 Nov 2018, 00:43 AM
By shale.larosh on MVC forms in Umbraco
16 Nov 2018, 22:34 PM
By EdwardPhova on MVC forms in Umbraco
16 Nov 2018, 12:40 PM
By svetikNoupt on MVC forms in Umbraco
13 Nov 2018, 22:04 PM
By nseo-sw.men on MVC forms in Umbraco
13 Nov 2018, 17:47 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development