AnsweredAssumed Answered

Issues running a Xamarin.Forms based Runtime app on the emulator

Question asked by mhamsa on Feb 26, 2018
Latest reply on Feb 27, 2018 by mhamsa

Hello,

 

We are in the process of beginning to develop a Xamarin.Forms based app the uses the Esri Runtime. I've done a little testing and I'm having quite a bit of problems debugging and running the app on the Android emulator. When I run the app with the Visual Studio debugger, it crashes right at startup. There are no exceptions, and very little output in the debug log. Here's what Visual Studio reports in the debug output:

 

02-26 15:02:27.709 D/Mono    (15402): Image addref mscorlib[0xae3040e0] -> mscorlib.dll[0xad02ba00]: 2
02-26 15:02:27.709 D/Mono    (15402): Prepared to set up assembly 'mscorlib' (mscorlib.dll)
02-26 15:02:27.709 D/Mono    (15402): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app/XamarinEsriMap.Android-1/lib/x86/libaot-mscorlib.dll.so" not found
02-26 15:02:27.710 D/Mono    (15402): AOT module '/Users/builder/data/lanes/4009/f3074d2c/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/mscorlib.dll.so' not found: dlopen failed: library "/data/app/XamarinEsriMap.Android-1/lib/x86/libaot-mscorlib.dll.so" not found
02-26 15:02:27.711 D/Mono    (15402): Config attempting to parse: 'mscorlib.dll.config'.
02-26 15:02:27.711 D/Mono    (15402): Config attempting to parse: '/Users/builder/data/lanes/4009/f3074d2c/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/mscorlib/mscorlib.config'.
02-26 15:02:27.774 D/Mono    (15402): Assembly mscorlib[0xae3040e0] added to domain RootDomain, ref_count=1

 

Additionally, when I simply run the app straight from the device emulator, I can zoom in once or twice on the map, then the app crashes.The app is very basic - just a MapView on the MainPage.xaml that loads the Streets basemap.

 

The emulator is running Android 6.0 (API Level 23) on a 5.7" device. I'm using the Visual Studio Android Emulator image.

 

I've run these tests with 100.2.0 and 100.2.1 with the same results.

 

Any assistance would be greatly appreciated.

 

Mike...

Outcomes