Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Virtual Device on a Windows 7 VM not compatible

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.

like image 511
phil652 Avatar asked Jul 22 '16 13:07

phil652


People also ask

Can Android studio work on Windows 7?

No, you cannot install the latest Android Studio(4.1. 3) on the windows 7(32 bit) system. To install the latest version of Android Studio you need Windows 7(64 bit) system.

Why the virtual device is not working in Android Studio?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Can virtual machine run on Windows 7?

Create a Windows 7 Virtual Machine Using VirtualBox Tip: Both VirtualBox and VMware can run on almost any Windows versions (no matter the Windows is 32-bit or 64-bit; and no matter the Windows is Windows 7, 8, or 10).

Can Android Studio run on virtual machine?

You can't run a VM-accelerated emulator inside another VM, such as a VM hosted by VirtualBox, VMware, or Docker (unless using WSL2). You must run the Android emulator directly on your system hardware.

How to create a virtual device in Android Studio?

Create an AVD. Tip: If you want to launch your app into an emulator, instead run your app from Android Studio and then in the Select Deployment Target dialog that appears, click Create New Virtual Device . To create a new AVD: Open the AVD Manager by clicking Tools > AVD Manager . Click Create Virtual Device, ...

Can Android Visual Studio Emulator run on azure?

Visual Studio Emulator sets the new standard for Android emulators. We at Apps4Rent helps you deploy Android Visual Studio Emulator on Azure. Tested by the Apps4rent engineers, the Android Visual Studio runs perfectly fine with Android OS when installed on Azure Cloud.

Why can't I VirtualBox run on an Android tablet?

VirtualBox uses virtualization, which isn't possible when the host device (Android tablet) uses a different CPU architecture than the guest device (x86 PC running windows XP). Since your android tablet almost certainly has an ARM CPU, the x86 CPU would have to be emulated, which is massively slower than virtualization.

Is it possible to virtualize the x86 CPU of an Android tablet?

Since your android tablet almost certainly has an ARM CPU, the x86 CPU would have to be emulated, which is massively slower than virtualization. It doesn't seem like it would be practical at all.


4 Answers

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.
like image 116
Sneh Pandya Avatar answered Oct 12 '22 17:10

Sneh Pandya


Read this post from virtual box as well and see if it applies to your situation please. :) https://forums.virtualbox.org/viewtopic.php?f=6&t=69076. If this is the case I'm afraid that as you requested there would be no free option, as you may have to go for a software such as VMWare which is license based.

What you could otherwise do is not use Intel HAXM inside your existing VirtualBox. That is by using an Android image that does not need hardware acceleration. This is because it is not possible to run two different emulation stacks on your processor at the same time. So since you are already running Virtual Box it would be better to use an emulator that does not need hardware acceleration. You could refer this post: Can I run an emulator without HAXM in Android Studio? if you like. Cheers

EDIT: phil did you try this? It would seem like the only viable option since VMWare isn't free

like image 33
imaadhrizni Avatar answered Oct 12 '22 17:10

imaadhrizni


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

like image 1
sumeet Avatar answered Oct 12 '22 15:10

sumeet


enable intel virtualization in bios

enter image description here

like image 1
rohit salaria Avatar answered Oct 12 '22 17:10

rohit salaria