【发布时间】:2014-08-28 17:48:34
【问题描述】:
我在从 Visual Studio 运行 Xamarin Store 演示应用时遇到了一些问题。当我尝试在虚拟 android 设备上从 Visual Studio 2013 运行 Xamarin 演示应用程序时,我要么处于“xamaring 商店已停止错误”的接收端,要么应用程序在 XamarinStore.MainActivity 的 ln 24 上中断:
SetContentView (Resource.Layout.Main);
控制台日志内容:
Loaded assembly: MonoDroidConstructors [External] An unhandled exception occured.
08-17 17:40:02.041 E/mono ( 2258): Unable to find seq points for method '(wrapper managed-to-native) System.Diagnostics.Debugger:Mono_UnhandledException_internal (System.Exception)'. 08-17 17:40:02.041 F/ ( 2258): * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/163212a9/source/mono/mono/mini/debugger-agent.c:5241, conditionsp' not met 08-17 17:40:02.041 E/mono-rt ( 2258): Stacktrace: 08-17 17:40:02.041 E/mono-rt ( 2258): 08-17 17:40:02.041 E/mono-rt ( 2258): 08-17 17:40:02.041 E/mono-rt ( 2258): ================================================================= 08-17 17:40:02.041 E/mono-rt ( 2258): Got a SIGABRT while executing native code. This usually indicates 08-17 17:40:02.041 E/mono-rt ( 2258): a fatal error in the mono runtime or one of the native libraries 08-17 17:40:02.041 E/mono-rt ( 2258): used by your application. 08-17 17:40:02.041 E/mono-rt ( 2258): ================================================================= 08-17 17:40:02.041 E/mono-rt ( 2258): Step request failed: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown. The program 'Mono' has exited with code 0 (0x0).
xamarin 的安装是一个干净的安装。我正在运行 4.4W SDK - API 级别 20。
【问题讨论】:
-
您尝试运行的是 Xamarin Store 还是 InAppBilling-demo?要使用具有 inapp-purchase 功能的测试应用程序,您不能在虚拟设备上运行它。
-
这是 Xamarin Store 演示应用程序
-
也许您已经阅读了其中的一些内容,但如果您还没有看到它,请发布此链接。希望能帮助到你。 forums.xamarin.com/discussion/16097/…
-
该链接建议使用 API 级别 19 而不是 20。不幸的是,这也失败了。