Android Studio emulator and AMD CPU - android-studio

I can't run my app on standard Nexus 5 emulator. It seems it requires Intel HAXM but i have an AMD processor. So how can i use the emulator without buying an Intel processor (or installing Linux)?

If you have an AMD processor, you can download an ARM image, but it is super slow on x86 platforms.
The x86 image does not work with AMD CPUs, because the x86 image needs HAXM installed which needs VT-X support, and only Intel CPUs support it.
So you can download the Genymotion emulator, which supports both VT-X & AMD-V technology.

Genymotion is super fast. Other than hooking your physical device up to test, it's the next best thing. Android Studio emulator is not efficient for testing. I am using the personal version of Genymotion.

With the latest API 30, even x86 emulators are very fast in AMD processors. For this in Windows, you follow this below.
You absolutely don't need Intel HAXM (Hardware Accelerated Execution Mode) in AMD processors, because they are AMD processors.
Just enable (check) Windows Hypervisor Platform in Windows features as shown below.
Now, you can start emulators. No need of Intel HAXM.
Here is official link: https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html

You can run the ARM (non Intel) emulator image. From your list, just choose a non Intel emulation.

You should give ARC Welder a try if all you just want to do is test an app, without all the distractions from an emulator. It works with the Google App Runtime For Chrome
You simply feed it your app's apk file and it generates a folder containing your app's resources then it launches the app. Its still in heavy development, so not all apps work yet, but its really worth giving a try.

Related

I can't install HAXM even after trying everything

I initially tried to install haxm though android studio. Not working.
I downloaded the installer for haxm though intel. Not working because: VT-x is not supported by this computer or it is being exclusively used by Hyper-V.
But vt is supported and it's not used by hyper-v.
I checked windows feautures and all hyper-v options/suboptions are off. I checked windows defender -> core isolation -> memory integrity and it's off. I have no other antivirus software that could possible block hyper-v, I have only windows defender.
I tried turning off, in case it's on, with command line and then rebooted and tried installing again.
I checked the bios/uefi and vt is enabled, mts (multithreading) is enabled.
I checked windows services and there was no service, relative to hyper-v, running.
I don't believe that there might be another software running in the same time which causes this problem (like amd driver (andrenaline), asrock rgb, or I don't know what). 
Any idea? 
CPU : ryzen 5 2600. MOBO: Asrock Fatal1ty B450 Gaming K4. OS: Windows 10 Education (latest version)
(I am not sure if this post fits here but I have seen a couple of posts regarding installation problems of HAXM. I read them. Still, they're not helpful for my problem as it seems)
Do check the following things
go to BIOS of your system, if your system (laptop/desktop) have intel processor then enable the VT-X (virtualization technology).
if your laptop/desktop have AMD processor then enable HYPER-V form your BIOS.
This will fix your problem for sure. If not then try to update your BIOS.
Fixed it having the following settings:
Under advanced/cpu settings:
SVM enabled. MTS enabled.
Under advanced/northbridge:
SR-IOV enabled.
On windows:
Hyper-V off. Windows Hypervisor on.
On windows defender:
Core Isolation -> Memory Integrity: off
On android studio:
Settings/System Settings/Android SDK:
Android Emulator On
Android Emulator Hypervisor Driver for AMD Processors On
(Check running services for related tasks. Check 3rd party software)
Reboot.
Don't try to install Intel x86 Emulator Accelator(HAXM) with AMD. There is no way to do it with AMD.

This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V error

I'm using Android Studio on windows 10 currently. However, as I try to install HAXM via android studio, there is an error which always pops up "This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed".
The weird thing is that when I checked my installed programs, HAXM is already installed by default. I have no idea why I am not able to upgrade. I'm using a decent gaming laptop with an 8th Gen Intel Core i7 processor.
Things I have tried :
I have already went into my bios and made sure all virtualization options were enabled and went to "Windows Features"and unchecked Windows Hyper-visor Platform but to no avail as the problem still persists
I recently had the same issue, and even though Intel virtualization was enabled in the BIOS and my Windows 10 doesn't have the Hyper-V option because it's the home edition, I wasn't able to use Android Studio emulators/virtual machines or upgrade/reinstall Intel HAXM. I then found out that an enabled feature on Windows Defender was the cause of the problem. Try the following steps (sorry, my device is in portuguese so the options might have another naming other than the direct translation to english):
In Windows Defender, go to Device Security (The one with a laptop icon).
Choose Kernel Isolation Details (first option).
And disable the Memory Integrity option if it isn't disabled already (in case it is, I'm sorry but this solution won't help you out).
If you have to change the option to disabled, restart your computer and try upgrading HAXM via Android Studio again.
I hope this helps. :)
In my case, after disabling Hyper-V in Windows Features I had to turn the antivirus (Kaspersky) off to install Intel x86 Emulator Accelerator (HAXM) 7.5.6 on Windows 10 Pro (1909).
IF u have AMD CPU you have to install Driver for AMD processor Check img

Cannot install HAXM for Android on Windows 10 64bit

I have an Asus ROG Laptop.
at the boot setup, I see the option for virtualization
In the system, Hyper-v is disabled, by unchecking the features and running dism.exe /Online /Disable-Feature:Microsoft-Hyper-V at PowerShell.
but yet I get the installation Error
And also I should mention that Intel Processor Identification Utility App is showing
I still can't comment, but do you have avast or other antivirus software, sometimes it interferes with hyper v.
Otherwise, you could disable and reenable vtx again.
you have to enable VT-x (virtualization technology) and enable feature XD (Disable Execution Bit) in the UEFI/BIOS... then it should be possible to install HAXM and use it. one can get there, by pressing DEL or F2 before the boot beep (the key may vary, depending on the mainboard vendor).
I've just seen the screenshot; enabling CPU feature XD should solve the issue.
Intel HAXM requires the Android SDK to be installed (version 17 or higher). For more information, refer to the Android developer website (https://developer.android.com/studio/index.html).

Intel HAXM is required to run this avd android studio

I am using Android Studio 2.2 (to appropriately follow along an online class). I am using a mac OS High Sierra v 10.13.3, Intel HD Graphics 6000 1536 MB graphics. However, I am receiving the following error:
"Troubleshoot
Intel HAXM is required to run this AVD.
/dev/kvm is not found
Enable VT-x in your BIOS security settings, ensure that your Linux distro has working KVM module."
The solutions I found on this site are mostly on Windows, and the mac solutions did not help.
I appreciate any help in this matter as I am desperate to continue.
you needs to turn on Virtualization in your BIOS setting.
this link will be helpful https://stackoverflow.com/a/35027378/8358956

How to solve this emulator: ERROR: x86 emulation currently requires hardware acceleration

After installing android-studio-bundle-141.2456560-windows.exe in Windows 7 32 bit ultimate (6.1 build 7600)
I'm getting HAXM error while run emulator, I have exercised all the possible ways like,
Installing INTEL HAXM hardware accelerator through SDK manager I have uploaded a screenshot of this.
I have unchecked HYPER V option in turn on and off features
When I try to install HAXM from android SDK extras shown in screen shot
Note that I don't have Virtualization option in my BIOS setup if we consider that some advanced SoC will internally takes care about this virtualization
!!!But still android emulator is throwing the error
According to Intel's website, the Core 2 Duo E7200 does not support VT-x
Intel ARK
Unfortunately you cannot run HAXM without vt-x. This means either you'll have to try a different emulation method or use a real android device. Using a real android device will always give you the best results, so I recommend going that route.
if you have not installed intel x86 Emulator Accelerator (HAXM installer) then you need to install it from tools -> SDK Manager there you will find this HAXM installer
if it has been already installed then also the same issue is arising then go to the folder where SDK is stored for me it is
D:\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
and then run silent_install with administrator permission
and you are ready to go..!!!
First, uninstall your "intelhaxm-android.exe".
go to the BIOS and enable "Intel(R) Virtuallzation Technology".
again install "intelhaxm-android.exe".
create a new Virtual device and run.

Resources