none
关于hyper-v下启动android emulator异常 RRS feed

  • 问题

  • 大家好,我刚刚接触使用C++开发安卓app,按照 "https://docs.microsoft.com/en-us/visualstudio/cross-platform/create-an-android-native-activity-app?view=vs-2017"示意,新建了第1个工程,并且照着“https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/”进行了设置。问题是:

    1、如果选择 "Android_Accelerated_x86_oreo",无论调试还是执行,都无法调出Android emulator.

    2、如果选择 "Visual studio_android-23_x86_phone",会弹出一个如下所示的部署错误,
    "1>emulator: Requested console port 5554: Inferring adb port 5555.
    1>emulator: ERROR: x86 emulation currently requires hardware acceleration!
    1>Please ensure Intel HAXM is properly installed and usable.
    1>CPU acceleration status: Please disable Hyper-V before using the Android Emulator.  Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot."

    已知:

    我的操作系统是win10 1803

    已经安装了
    VS 2017 pro v15.8.23
    Hyper-v
    Windows Hypervisor Platfrom
    Android 8.1-oreo
    Android 6.0-marshmallow
    Android sdk tools v26.1.1
    Android sdk platform tools v28.0.0
    Android sdk built tools v27.0.3
    Android sdk built tools v25.0.3
    Android emulator v27.3.9
    Google usb driver V11
    sdk patch applier v4 v1

    没有装HAXM

    检查相应的路径下已经存在advancedFeatures.ini内含WindowsHypervisorPlatform = on

    请问大家有遇到过类似的情况吗,应该如何解决,非常感谢大家的帮助。

    PS: 通过Android Devcie Manager可以启动Android_Accelerated_x86_oreo或者Visual studio_android-23_x86_phone!
    2018年9月9日 7:05

答案