Xamarin - android空白应用程序在启动时停止,没有错误或警告

时间:2017-10-14 16:13:33

标签: android xamarin xamarin.forms

我无法在Android上启动xamarin中的任何应用程序,app就停止了。在IDE中有0个错误或警告,我只是得到“xxx已停止”的通信。它只是新创建的空白应用程序,没有任何改变。我正在研究最新的2017年和更新的xamarin。尝试在API 25(7.1)和23(6.0)模拟器中启动应用程序。 Meanwile,UWP工作正常。您有什么想法导致这种情况以及如何解决这个问题吗?

编辑:

一些日志和消息:

10-14 16:47:00.571 I/MonoDroid( 3336): System.TypeLoadException: Could not load type 'Inżynierka.Droid.MainActivity' from assembly 'Inżynierka.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
10-14 16:47:00.571 I/MonoDroid( 3336):   at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
10-14 16:47:00.571 I/MonoDroid( 3336):   at System.Type.GetType (System.String typeName, System.Boolean throwOnError) [0x0000e] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 
10-14 16:47:00.571 I/MonoDroid( 3336):   at Java.Interop.TypeManager.n_Activate (System.IntPtr jnienv, System.IntPtr jclass, System.IntPtr typename_ptr, System.IntPtr signature_ptr, System.IntPtr jobject, System.IntPtr parameters_ptr) [0x00075] in <a48f8ed02442437495363c761e1d68a6>:0 
10-14 16:47:00.571 I/MonoDroid( 3336):   at (wrapper dynamic-method) System.Object:b47f8a67-2a27-4b05-93ae-4b3fc59378b1 (intptr,intptr,intptr,intptr,intptr,intptr)
  

您的应用已进入中断状态,但没有可显示的代码   因为所有线程都在执行外部代码(通常是系统或   框架代码)。

     

所选的调试引擎不支持在其上执行的任何代码   当前线程(例如,只有本机运行时代码正在执行)。

我对xamarin完全不熟悉,所以我认为这是我犯的一些基本的,愚蠢的错误,并没有正确配置IDE。

1 个答案:

答案 0 :(得分:0)

我在这件事上花了整整一夜,而且我在网上找不到任何东西。所以我从头开始重新安装整个vs 2017和android SDK。现在它有效。硬核解决方案,但我找不到问题的根源。