Visual studio can't debug Android Xamarin app

前端 未结 9 840
萌比男神i
萌比男神i 2021-01-17 08:51

I\'ve started with Xamarin and Android using Visual Studio 2013.

When I start debugging the android app, it builds, deploys to device and then debugging in Visual St

相关标签:
9条回答
  • 2021-01-17 09:47

    In my case, after some investigation, I saw I was having this warning: "Failed to read .android.dll' with debugging symbols. Retrying to load it without it. Error details are logged below. 2>Mono.Cecil.Cil.SymbolsNotMatchingException: symbols were found but are not mathing the assembly"

    The solution was to disable linking:

    Right-click the Android Project -> Properties -> Android Options -> Under "Linker properties", set Linking to None (see image below)

    Got this from TedFalasco's answer on this post.

    0 讨论(0)
  • 2021-01-17 09:48
    1. Enter in "Solution properties"
    2. Select "Configurarion Properties"
    3. Check "Deploy" in Android project.

      • Open Hyper-V Manager
      • Go to settings on your emulator
      • Go to processor settings
      • Select Compatibility
      • Mark the "Migrate to a physical computer with a different processor version" checkbox
    0 讨论(0)
  • 2021-01-17 09:51

    I was having the same problem and I found this workaround with Hyper-V in Xamarin's documentation: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-emulator/visual-studio-android-emulator/

    TL;DR; Open Hyper-V Manager -> Go to settings on your emulator -> Go to processor settings -> Select Compatibility -> Mark the "Migrate to a physical computer with a different processor version" checkbox -> Done! (At least for me) VS is now debugging my Android App

    0 讨论(0)
提交回复
热议问题