Xamarin Forms Android
Some recent nuget package level is causing this error. We we only using stable packages, but I started trying more recent Xamarin pre- release packages to see if the issue has been resolved.
The part of the Build and Debug Output with error.
Assembly Loader probing location: 'System.Memory'. 07-06 10:10:51.972 F/monodroid-assembly( 4029): Could not load assembly 'System.Memory' during startup registration.
The Compile is set to use Latest(8.1) Minimum version is 7.0
From other posts, i tried deleting shared runtime and tried the Android options with and with used shared runtime checked.
edit 3: Updated output from Debug:
07-06 10:10:48.375 D/Mono ( 4029): AOT: image '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Platform.dll.so' not found: dlopen failed: library "/data/app/com.Oxando.OxandoXPC-xDHzK4ivf73vZ_mvi0X4Jg==/lib/x86/libaot-Xamarin.Forms.Platform.dll.so" not found
07-06 10:10:48.376 D/Mono ( 4029): AOT: image '/usr/local/lib/mono/aot-cache/x86/Xamarin.Forms.Platform.dll.so' not found: dlopen failed: library "/data/app/com.Oxando.OxandoXPC-xDHzK4ivf73vZ_mvi0X4Jg==/lib/x86/libaot-Xamarin.Forms.Platform.dll.so" not found
07-06 10:10:48.376 D/Mono ( 4029): Assembly Loader loaded assembly from location: '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Platform.dll'.
07-06 10:10:48.376 D/Mono ( 4029): Config attempting to parse: '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Platform.dll.config'.
07-06 10:10:48.376 D/Mono ( 4029): Config attempting to parse: '/usr/local/etc/mono/assemblies/Xamarin.Forms.Platform/Xamarin.Forms.Platform.config'.
07-06 10:10:48.376 D/Mono ( 4029): Assembly Loader probing location: '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Xaml.dll'.
07-06 10:10:48.376 D/Mono ( 4029): Image addref Xamarin.Forms.Xaml[0xcbf3d2c0] -> /storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Xaml.dll[0xcbf50400]: 2
07-06 10:10:48.376 D/Mono ( 4029): Prepared to set up assembly 'Xamarin.Forms.Xaml' (/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Xaml.dll)
07-06 10:10:48.376 D/Mono ( 4029): Assembly Xamarin.Forms.Xaml[0xcbf3d2c0] added to domain RootDomain, ref_count=1
07-06 10:10:48.377 D/Mono ( 4029): AOT: image '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Xaml.dll.so' not found: dlopen failed: library "/data/app/com.Oxando.OxandoXPC-xDHzK4ivf73vZ_mvi0X4Jg==/lib/x86/libaot-Xamarin.Forms.Xaml.dll.so" not found
07-06 10:10:48.378 D/Mono ( 4029): AOT: image '/usr/local/lib/mono/aot-cache/x86/Xamarin.Forms.Xaml.dll.so' not found: dlopen failed: library "/data/app/com.Oxando.OxandoXPC-xDHzK4ivf73vZ_mvi0X4Jg==/lib/x86/libaot-Xamarin.Forms.Xaml.dll.so" not found
07-06 10:10:48.378 D/Mono ( 4029): Assembly Loader loaded assembly from location: '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Xaml.dll'.
07-06 10:10:48.378 D/Mono ( 4029): Config attempting to parse: '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/Xamarin.Forms.Xaml.dll.config'.
07-06 10:10:48.378 D/Mono ( 4029): Config attempting to parse: '/usr/local/etc/mono/assemblies/Xamarin.Forms.Xaml/Xamarin.Forms.Xaml.config'.
07-06 10:10:48.378 D/Mono ( 4029): Assembly Loader probing location: '/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/System.Memory.dll'.
07-06 10:10:48.378 D/Mono ( 4029): Image addref System.Memory[0xcbf3d4a0] -> /storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/System.Memory.dll[0xcbf50e00]: 2
07-06 10:10:48.378 D/Mono ( 4029): Image for assembly 'System.Memory' (/storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/System.Memory.dll) has ReferenceAssemblyAttribute, skipping
07-06 10:10:48.378 D/Mono ( 4029): Unloading image /storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/System.Memory.dll [0xcbf50e00].
07-06 10:10:48.379 D/Mono ( 4029): Assembly Loader probing location: '/usr/local/lib/System.Memory.dll'.Loaded assembly: /storage/emulated/0/Android/data/com.Oxando.OxandoXPC/files/.override/SQLitePCLRaw.batteries_green.dll [External]
...
...
Assembly Loader probing location: 'System.Memory'.
07-06 10:10:51.972 F/monodroid-assembly( 4029): Could not load assembly 'System.Memory' during startup registration.
07-06 10:10:51.972 F/monodroid-assembly( 4029): This might be due to an invalid debug installation.
07-06 10:10:51.972 F/monodroid-assembly( 4029): A common cause is to 'adb install' the app directly instead of doing from the IDE.