When I launch a debug session for my Xamarin.Forms Android project, it crashes instantly, with the following error message:
java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
I'm using Shared Runtime and Fast Deploy, although inactivating either doesn't seem to solve my problem.
What does solve my problem, however, is uninstalling the application manually from the device. Then it'll work for one debug session, but as soon as I start the next one, the same error is back.
It seems to me that the application is somehow unable to find the Mono Shared Runtime if it was installed in a previous debug session, but I can't for the life of me see why.
file, and won't uninstall cleanly). I advise not rooting a Samsung if meaningful testing is important.