简体   繁体   中英

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. 虫子

I'm Using VS2015 and all updates of Xamarin forms and supports

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)
  3. Open the solution again
  4. Build again (Nuget will get the libaries again based on the packages.config)

Thanks for Pavendhan Kumar's advice .

  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.

  2. Also try cancelling " Use shared runtime option " under android Properties->Android Options->cancel in project file.

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。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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