[英]MvvmCross not using shared runtime for mono
This is a xamarin android application using MvvmCross. 这是一个使用MvvmCross的xamarin android应用程序。 As soon as I uncheck "Use Shared Runtime" for my Release build, I get an error when trying to run the application.
取消选中“使用共享运行时”作为发布版本后,尝试运行该应用程序时会出现错误。 I think MvvmCross is missing something in it's container, but not sure how to find out what.
我认为MvvmCross在其容器中丢失了某些内容,但不确定如何找出原因。 Here is the error:
这是错误:
Loaded assembly: Mono.Android.Support.v4.dll [External]
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Core.dll [External]
Loaded assembly: MonoDroidConstructors [External]
07-29 15:07:02.034 D/ActivityThread(14030): setTargetHeapUtilization:0.25
07-29 15:07:02.034 D/ActivityThread(14030): setTargetHeapIdealFree:8388608
07-29 15:07:02.034 D/ActivityThread(14030): setTargetHeapConcurrentStart:2097152
07-29 14:51:31.771 I/ActivityThread(13053): Pub sdinc.app.mono.MonoRuntimeProvider.__mono_init__: mono.MonoRuntimeProvider
07-29 14:51:31.781 W/MonoDroid-Debugger(13053): Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8819,server=y,embedding=1
07-29 14:51:31.942 W/MonoDroid-Debugger(13053): Accepted stdout connection: 43
07-29 14:51:33.443 W/monodroid-gc(13053): GREF GC Threshold: 46800
07-29 14:51:34.985 F/ (13053): * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.7.9-branch/47cd3984/source/mono/mono/metadata/domain.c:1721, condition `mono_defaults.iunknown_class != 0' not met
07-29 14:51:34.985 E/mono-rt (13053): Stacktrace:
07-29 14:51:34.985 E/mono-rt (13053):
07-29 14:51:34.985 E/mono-rt (13053): at <unknown> <0xffffffff>
07-29 14:51:34.985 E/mono-rt (13053): at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes (System.Reflection.Assembly,bool) <IL 0x0002e, 0xffffffff>
07-29 14:51:34.985 E/mono-rt (13053): at System.Reflection.Assembly.GetTypes () <IL 0x00002, 0x00053>
07-29 14:51:34.985 E/mono-rt (13053): at Cirrious.CrossCore.IoC.MvxTypeExtensions.ExceptionSafeGetTypes (System.Reflection.Assembly) <IL 0x00001, 0x0006b>
07-29 14:51:34.985 E/mono-rt (13053): at Cirrious.MvvmCross.Droid.Platform.MvxAndroidSetupSingleton.<FindSetupType>b__8 (System.Reflection.Assembly) <IL 0x00001, 0x00043>
07-29 14:51:34.985 E/mono-rt (13053): at System.Linq.Enumerable/<CreateSelectManyIterator>c__Iterator29`3.MoveNext () <IL 0x00066, 0x002b7>
The program 'Mono' has exited with code 0 (0x0).
I had to add the following assemblies to the project properties for "Skip linking assemblies" 我必须将以下程序集添加到“跳过链接程序集”的项目属性中
System.Core System.Windows System.Core System.Windows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.