Android Studio Virtual Device on a Windows 7 VM no

2019-04-03 18:02发布

I have a VirtualBox VM on my computer, the VM is running Windows 7 64bit. I installed Android Studio on that VM. I only have the basic Hello World application. When I try to run AVD I get this message:

Intel HAXM is required to run this AVD. Android Emulator is incompatible with Hyper-V.

Unfortunately, you cannot have Hyper-V running and use the emulator. Here is hat you can do:

1) Start a command prompt as Administrator

2) Run the following command: C:\Windows\system32> bcdedit /set hypervisorlaunchtype off

3) Reboot your machine.

I tried running this command and restart multiple time, doesn't change anything.

I also tried to do some port forwarding : http://paulsdevworld.blogspot.ca/2013/06/make-android-studio-work-with-androvm.html I was unable to connect No connection could be made because the target machine actively refused it.

I've check this question, I'm not having the same issue because OP has a android image directly in VirtualBox Test android app on Virtual Box from Android studio

Anyone knows a way to make this work or something that I could try? Feel free to ask any question.

EDIT: I installed Intel HAXM but when I try to run it I get this message enter image description here

Those are my current settings, virtualization is clearly enabled. Is that the correct settings? enter image description here

Is there any way to make this work in a VM?

Starting a bounty the answer doesn't need to be with Virtual Box but has to be free of cost.

HOST PC host GUEST PC guest

I downloaded the free trial version of VMware and I manage to get it working using those settings below. I tried the exact same settings in VirtualBox and I get the Hyper-V error. settings screenshot

SOLUTION:

If anyone is wondering I was able to run it in Virtual Box. This is the settings I used on the AVD: Solution Warning slow.

7条回答
Juvenile、少年°
2楼-- · 2019-04-03 18:27

The below process works if your system supports Intel Virtualization Technology (VT-x):

  1. Go to BIOS using F10 on Boot-up.
  2. Go to System Configuration/System Settings.
  3. Enable Virtualization Technology.
  4. Press F10 to Save and Exit.
  5. Reboot and your VT-x should be working.
查看更多
时光不老,我们不散
3楼-- · 2019-04-03 18:28

If you are Not in situation to Enable Intel-VT from BIOS menu, You should use Different processors for your VM, like ARM or 32 bit processors. cause Intel-VT let's you use 64bit VMs.

查看更多
在下西门庆
4楼-- · 2019-04-03 18:35

I had the same issue, solved it by Installing the Intel Hardware Accelerated Execution Manager. Download it with the SDK Manager, it's in Extras. After this, go to the folder

[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager

then run IntelHaxm.exe and install.

Here the link of the Intel Hardware Accelerated IntelHaxm.exe for Microsoft Windows,Mac OS* X, and Linux Ubuntu

enter image description here

You'll get the following message if you don't have virtualization enabled in your BIOS:

enter image description here

查看更多
Viruses.
5楼-- · 2019-04-03 18:41

enable intel virtualization in bios

enter image description here

查看更多
萌系小妹纸
6楼-- · 2019-04-03 18:43

You can also try GenyMotion intead of AVD. It has better performance than AVD. It's free if you use it non-commercially. GenyMotion uses Virtual Box, you can check if VB working properly.

查看更多
做个烂人
7楼-- · 2019-04-03 18:44

if you've already enabled VT-x in the BIOS setting, make sure that you have installed intel haxm that comes with android sdk. If you haven't install it yet, you can open your SDK manager and install it from there or you can download it from this https://dl-ssl.google.com/android/repository/extras/intel/addon/haxm-windows_r6_0_5.zip, unzip it to extras folder in your android sdk then install.

查看更多
登录 后发表回答