Breakpoints don't work while debugging native Android library in Visual Studio 2015

前端 未结 2 2181
难免孤独
难免孤独 2021-02-08 05:11

On a fresh installation of Visual Studio 2015 I created an Android application and Android native library. Functions from native library are referenced in the app code through D

2条回答
  •  旧时难觅i
    2021-02-08 05:35

    The tip described in this post solved my problem:

    https://blogs.msdn.microsoft.com/cesardelatorre/2016/02/06/solving-issue-with-vs-android-emulator-xamarin-apps-and-intel-skylake-processor-i-e-when-using-a-microsoft-surface-book-i7-surface-pro-4-etc/

    SOLUTION:

    And we were right! The issue is related to Hyper-V on Windows 10 when running on the latest Intel (Skylake) processors. (Thanks Mike, from the VS Android Emulator team, who suggested this possible workaround).

    Hot to Fix it:

    • In the Hyper-V manager, right click on the Android VM you are using.
    • Click Settings
    • Expand "Processor", select "Compatibility"
    • Enable "Migrate to a physical computer with a different processor version"

    You can see below the checkbox you have to select.

提交回复
热议问题