Is there any way, that I can make Android Emulator run on Azure Virtual Machine?

谁说我不能喝 提交于 2019-12-01 18:02:22

Something that requires virtualization isn't going to run in an Azure VM (which is already virtualized). Same thing with, say, WP8 emulator (see this question, with the same answer).

EDIT - As of mid-2017, there are now VMs that support nested virtualization (Dv3 and Ev3 series, for now). See this post for more information.

If you set the CPU of the emulator to armeabi-v7a it will work (albeit very very slowly). Tested with Rev 25. I assume this works because it doesn't use virtualization, but rather CPU Emulation.

The Android emulator works with the following setup:

Azure VM: Windows 10 Enterprise N

Android Studio: 2.3.1

AVD Manager

Hardware: Phone -> Nexus 5X
System Image: Other Images -> Nougat 25 armeabi-v7a [Android 7.1.1]

Start the emulator and wait about 5-10 minutes for the process to complete. Then run your Android app by attaching it to the running emulator. Note that "Apply Changes" (lightning bolt icon) also works for small code changes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!