I have an Android app I developed about a year ago on Xamarin Forms in VS2015. I checked it out to make some minor modifications, but I had reloaded Windows 10 since then. I fired up a completely fresh Windows 10 installation, installed VS2015 and ran Windows Update. I loaded the App code base and updated the NuGet packages (these are all Xamarin. ... packages, nothing unusual or third-party). I loaded the Oreo API in API Manager and took all the updates offered. When I rebuilt the code base, it completed without errors, but there were a couple of worrying messages:
Multiple instances of CS0618: Forms.Context is obsolete ...
"No way to resolve conflict between "mscorlib, Version=126.96.36.199, ... and "mscorlib, Version=188.8.131.52 ... Choosing mscorlib, Version=184.108.40.206 ... arbitrarily."
The last is in output only, neither an error or warning, but it sounds really bad, and choosing code arbitrarily is rarely the right thing to do in software!
Since there were no actual errors I went ahead to debug on a real ADB target (A Lenovo Tablet, Android 6.0 - API 23). The app loads up and presents an empty screen and then terminates on an exception before executing any of my code:
Java.Lang.RuntimeException: Unable to instantiate activity ComponentInfo ... Didn't find class "md59dfe07309ceba9bfe71a67493c5725be.MainActivity" on path: DexPathList[[zip file ...
I have no idea how to proceed and have tried everything I can think of including deleting everything Xamarin, Mono and App related from the tablet, deleting the bin and obj directories and re-building, reverting the code base and trying both before and after updating NuGet packages. None of this made any difference, though in the course of all this faffing about the app did successfully run on one occasion which I could not repeat.
Please, I am getting desperate, does anyone have any kind of handle on this or any suggestion as to how I can proceed?