When i try to develop android app using android studio I faced the problem "your computer does not support intel virtualization technology" .
Then I tried to enable vt- x in BIOS setting.
But my processor(intel B950) does not have intel virtualization technology.
So how can I start Haxm?
Your processor (intel B950) does not support virtualization technology. Hence you are out of luck to gain hardware acceleration for a speedy emulator. However you still should be able to run arm targeted emulators, though in slow speeds.
Unfortunately, you cannot use HAXM without Intel's virtualization technology support by your BIOS and CPU.
There are some non-HAXM emulators. Genymotion is suggested a lot.
Related
I have created AVD, but when I try to run android program, it is showing an
error
Your CPU does not support VT-x
I enabled virtualization technology in BIOS, but still this error comes up when I try to run my android program.
There are two scenarios:
Using VMware: go to "WM" > "Settings" > "Processors" and Activate VT-x as below:
Using OS installed on HW: as others mentioned if your CPU supports that you should activate it in your BIOS.
According to Android Documentation, to run an emulator the development system's CPU should support one of the following virtualization extensions technologies:
Intel Virtualization Technology (VT, VT-x, vmx)
AMD Virtualization (AMD-V, SVM) -- only supported for Linux
Your CPU is Intel® Core™2 Duo Processor E7300, which according to the manufacturer does not support Intel Virtualization Technology (VT-x). That's the reason for this error.
The workaround is to use an alternative Android Emulator, e.g. Genymotion, as already suggested.
I suggest that you Just need to follows steps:
First,Go to Control Panel → Program and Feature.
Then, Click on Turn Window Features on and off. A window opens.
Then,Uncheck Hyper-V option and restart your system.
Now, you can Start HAXM installation.
Check this also https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
OR
You can use Genymotion
If you have changed settings from BIOS, then you just need a restart of your machine.
There couple of solutions you can try
You can Make an AVD With ARM Instead of HAXM.
Other solutions can be just to enable Intel Virtualization Technology
from BIAS.
Or you can use an alternative emulator like genymotion to fix this
problem.
If the above solutions bother you then you can use a physical device for testing purposes.
If you're
Using VMware: go to "VM" > "Settings" > "Processors" and Activate VT-x as below:
Then go to your Turn Windows feature on or off and uncheck virtual Machine Platform and Windows Hypervisor Platform as below:
Thank me :)
For those who might have the problem in these days,
you might try the steps described here:
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
Also according to other answers, you have to be sure that CPU does
support virtualization, and that the virtualziation is on.
There is a couple of solutions to your problem.
You can Make an AVD With ARM Instead of HAXM.
Other solutions can be just to enable Intel Virtualization Technology
from BIAS.
Or you can use an alternative emulator like genymotion to fix this problem.
If the above solutions bother you then you can use a physical device
for testing purposes.
My laptop uses Intel core Duo CPU T5750 processor which supports Enable bit functionality but does not support virtualization.
Can I still install HAXM by just disabling the Hyper-V feature?
Will Haxm run in my laptop which doesn't support virtualization??
No, It will not run, he absolutely needs Virtualization, the Hyper-V feature has nothing to do here. Sadly, your processor is getting old.
BTW, use Genymotion, far better emulator than stock one.
So I'm trying to install HAXM, and I've tried everything for 4 days now, still nothing. My question is, do you need an Intel CPU to install HAXM because that's the only reason I can think of that it wouldn't work. I have gone into my BIOS and enabled virtualization, and I have a 64-bit AMD A4-5000 APU with Radeon Graphics HD that supports acceleration and virtualization with 8GB's of RAM...
I remember reading somewhere you either need Intel or AMD. Can anyone help, becasue I'm about to give up on Android Studio 100%.
Also, I can't use my phone for testing either, so I need to use the emulator. Thanks.
If you use Windows,I highly recommend to use Visual Studio Android emulator.
It works really fast (I have similar chipset and 6 GB's of RAM), much faster than native emulator by Google, and it's free unlike Genymotion which I used too, especially when it comes to rich feature set. You can use this emulator with Android Studio, first laucn Microsoft emulator and then in AS when you push "Run" button, you'll get a window, where you can see your MS emulator setted up as a running device, click this checkbox and then "OK" button and you're good to go, it's like just a few seconds to laucn your app. BTW, haven't tried out cordova apps, but I think it'll be same great.
If you are using AMD processor, you can download an ARM image,x86 image need install HAXM which need VT-x support, and only intel's CPU support it.
So download "ARM EABI V7a system image" it works well or try using "genymotion emulator"
Hope this help u!!!!
Driver available direct from INTEL here - https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager .
From readme:
Hardware Requirements:
Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality
AMD is on Windows supported since July 2018. You have to enable Windows Hypervisor Platform (WHPX):
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
Is there any equivalent of Intel's HAXM for AMD (Windows OS) or has anybody been able to hack HAXM to make it work on AMD processors (Windows OS)?
Also, would Genymotion (http://www.genymotion.com) be significantly faster compared to the default Google APIs ARM / x86 system images provided by Google?
My exact dev machine specs:
OS: Windows 7 Ultimate
Processor: AMD FX 8120 8 Core 2.81 GHz
Posting a new answer since it is 2019.
TLDR: AMD is now supported on both Windows and Linux via WHPX and yes, Genymotion is faster as it is using x86 architecture virtualization.
From the Android docs (January 2019):
Though we recommend using HAXM on Windows, it is possible to use
Windows Hypervisor Platform (WHPX) with the emulator. You should use
WHPX with the emulator if you are using an AMD CPU or if you need to
use Hyper-V at the same time.
To use WHPX acceleration on Windows, you must enable the Windows
Hypervisor Platform option in the Turn Windows features on or off
dialog box. For changes to this option to take effect, restart your
computer.
Additionally, the following changes must be made in the BIOS settings:
Intel CPU: VT-x must be enabled. AMD CPU: Virtualization or SVM must
be enabled.
Diff from 2016:
Virtualization extension requirements
Before attempting to use acceleration, you should first determine if
your CPU supports one of the following virtualization extensions
technologies:
Intel Virtualization Technology (VT, VT-x, vmx) extensions
AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
Most modern computers do. If you use an older computer and you're not
sure, consult the specifications from the manufacturer of your CPU to
determine if it supports virtualization extensions. If your CPU
doesn't support one of these virtualization technologies, then you
can't use VM acceleration.
Virtualization extensions are typically enabled through your computer BIOS and are frequently turned off by default. Check the documentation
for your motherboard to find out how to enable virtualization
extensions.
From the Android docs (March 2016):
Before attempting to use this type of acceleration, you should first
determine if your development system’s CPU supports one of the
following virtualization extensions technologies:
Intel Virtualization Technology (VT, VT-x, vmx) extensions
AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
The
specifications from the manufacturer of your CPU should indicate if it
supports virtualization extensions. If your CPU does not support one
of these virtualization technologies, then you cannot use virtual
machine acceleration.
Note: Virtualization extensions are typically enabled through your
computer's BIOS and are frequently turned off by default. Check the
documentation for your system's motherboard to find out how to enable
virtualization extensions.
Most people talk about Genymotion being faster, and I have never heard anyone say it's slower. I definitely think it's faster, and it will be worth the ~20 minutes it will take to set up just to try it.
You will need to create a virtual device that runs on ARM. Virtual devices running on X86 require an Intel processor. AMD support as specified by Android is only available for Linux systems. If you want a better experience when creating your Virtual Device, use "Store a snapshot for faster startup" instead of the default "Use Host GPU".
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
Important
If you have an AMD processor in your computer you need the following setup requirements to be in place:
AMD Processor - Recommended: AMD® Ryzen™ processors
Android Studio 3.2 Beta or higher - download via Android Studio Preview page
Android Emulator v27.3.8+ - download via Android Studio SDK Manager
x86 Android Virtual Device (AVD) - Create AVD
Windows 10 with April 2018 Update
Enable via Windows Features: "Windows Hypervisor Platform"
Buying a new processor is one solution, but for some of us that means buying other components as well. Alternatively you could just buy an Android phone that supports your lowest target API level and run your apps off the phone. You can find some of those phones on Amazon, Ebay, craigslist for pennies (sometimes). Plus this grants you the benefit of actually running on the minimum hardware you intend to support. While this may be a bit slower than installing your app on an emulated system, it will probably save you money.
Android, device testing/debugging link: http://developer.android.com/tools/device.html
hello to run the avd manager on AMD processor you need update your SDK MANAGER in Android Studio:
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
You go to tools->SDK MANAGER->SDK Tools
then look for Android Emulator and Android Emulator Hypervisor Driver for AMD Processors
check the boxes and click apply or OK
This limitation (of Windows) should be publicly announced! The issue for me is the combination of the following: Windows 10 + AMD CPU (with AMD-V/SMV) +/- Hyper Visor
I have no issues running: Intel (with VT-x) + Linux or AMD (with AMD-V) + Linux
Link to Android studio issue here:
https://developer.android.com/studio/run/emulator.html#accel-vm
Xamarin/Visual Studio seems to have a workaround, but I haven't tested it yet:
If you need to use Hyper-V for other emulators then I'd recommend using the Microsoft Android Emulator instead, which uses Hyper-V and can also be used with Xamarin Studio/Visual Studio. You can download it for free from here.
I will update this after I confirm it works. Wish I would have known this before purchasing a new machine.
UPDATE!! It does not work "Requires Intel ..." error message is shown
Final note:
*Must be revision F3 or grater or must be F2 with BIOS support. Presence or absence of SVM Disable or other virtualization options in
the bios does not ensure presence of BIOS support. You should contact
the OEM to ensure support of Hyper-V.
*Some AMD BIOS's have options to enable/disable SVM (virtualization assistance)
*Some BIOS's list this as SVM Disable and it's a double negative, i.e. you want to disable SVM disable to enable SVM.
*Some BIOS's list this as Secure Virtualization, thus enabling Secure Virtualization will enable SVM
*Must have No-Execute enabled in the BIOS, sometime this is referred to as NX or Execute Disable
*If you want to find CPU's that are F3 see AMD's guide http://products.amd.com/en-us/DesktopCPUFilter.aspx or
http://products.amd.com/en-us/OpteronCPUFilter.aspx?f1=Second-Generation+AMD+Opteron%e2%84%a2
Posting a new answer since it is (almost) 2020.
The Android Emulator still only supports HAXM or WHPX on windows. And you may even call it a day already with the latter.
But if you don't like it, there is now work in progress AMD-V support for the former by one of the PS4 emulator developers: https://github.com/jarveson/haxm/tree/svm
On my Mobo (ASRock A320M-HD with Ryzen 3 2200G) I have to:
SR-IOV support: enabled
IOMMU: enabled
SVM: enabled
On the OS enable Hyper V.
Now there is another alternative: Android Emulator Hypervisor Driver for AMD Processors on Windows
Before you can install and use the Android Emulator Hypervisor Driver for AMD Processors, your computer must meet the following requirements:
AMD processor with Secure Virtual Machine (SVM) Technology
64-bit Windows 10, Windows 8, or Windows 7 (32-bit Windows is not supported)
To use Android Emulator Hypervisor Driver for AMD Processors on Windows 10 or 8, you must turn off Hyper-V in the Windows Feaures Dialog.
Note: Installing certain software might turn Hyper-V back on. Refer to Disabling Hyper-V for more details.
I have AMD ryzen processor. This worked for me.
Go to boot menu.
Go to advanced settings.
Enable SVM.
Make UVM to auto.
Save and exit.
I want to install HAXM on windows 8.1 (HP pavilion 3515) (I've downloaded the hotfix from here). but the below error occurs during installation (HyperV is not installed on my laptop). so I installed the "Intel processor utility to check if my laptop supports VT or not, and as you see in the second picture it says "NO". then I checked my bios and I saw "Virtualization technology" item in "configuration manager" tab! and I enabled it, and tried to install HAXM again, but I got the error again and I saw NO in front of "Virtualization technology again.
Now my question is that "is there any way to do so my cup can support it"? or it's a hardware problem?
It's a hardware problem. If your CPU doesn't support Intel Virtualization Technology then HAXM will not work for you.
According to ark.intel.com, the T5900 series processors do not support VT-x. Not sure why your bios indicates that you have it. Perhaps it supports some VT features but not all the VT features that HAXM requires.
Here are some trouble-shooting tips for installing HAXM.
http://software.intel.com/en-us/blogs/2014/03/14/troubleshooting-intel-haxm