When I start a debugging session for my Android project Xamarin.Forms, it instantly fails, with the following error message:
java.lang.RuntimeException: cannot get the mono.MonoRuntimeProvider provider: java.lang.NullPointerException: attempt to call the virtual method 'java.lang.String java.io.File.getAbsolutePath ()' to reference a null object
I use Shared Runtime and Fast Deploy, although inactivation either does not help to solve my problem.
However, the solution to my problem is to remove the application manually from the device. Then it will work for one debugging session, but as soon as I start the next one, the same error will return.
It seems to me that the application somehow cannot find the Mono Shared Runtime if it was installed in a previous debugging session, but I canβt understand for life why.
c # xamarin xamarin.android xamarin.forms
Andreas Eriksson
source share