简体   繁体   English

调试时Xamarin Forms崩溃

[英]Xamarin Forms crash when debugging

I'm trying to debugging an Xamarin Forms application but when i start the debug it's open and close the application and stop the debugger. 我正在尝试调试Xamarin Forms应用程序,但是当我开始调试时,它将打开并关闭该应用程序并停止调试器。 虫子

I'm Using VS2015 and all updates of Xamarin forms and supports 我正在使用VS2015以及Xamarin表单和支持的所有更新

Looks like an error with your linked libaries. 链接的库似乎有错误。 Try this: 尝试这个:

  1. Close the solution 关闭解决方案
  2. Delete the whole content of the Packages folder (there are the referenced Nuget libaries) 删除Packages文件夹的全部内容(有引用的Nuget库)
  3. Open the solution again 再次打开解决方案
  4. Build again (Nuget will get the libaries again based on the packages.config) 再次构建(Nuget将基于packages.config重新获得库)

Thanks for Pavendhan Kumar's advice . 感谢Pavendhan Kumar的建议

  1. You could try clearing bin,obj folders and to uninstall previously installed app with this name, sometimes the uninstalled app have an entry at this location with its namespace. 您可以尝试清除bin,obj文件夹并使用此名称卸载以前安装的应用程序,有时,已卸载的应用程序在此位置具有其名称空间的条目。

  2. Also try cancelling " Use shared runtime option " under android Properties->Android Options->cancel in project file. 也可以尝试在项目文件中的android Properties->Android Options->cancel下取消“ Use shared runtime option ”。

EDIT : 编辑

You could enable diagnostic logging and then check which reference leads to the wrong assembly. 您可以启用诊断日志记录,然后检查哪个引用导致了错误的组装。

Tools -> Options -> Projects and Solutions -> Build and Run -> Choose Diagnostic logging

问题是:“当我将CRUD项目与Android Project中的引用一起使用时,如果我有system.Drawing,则不会构建该项目,因为Android Project不接受System.Drawing。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM