Android Studio HAXM With AMD...? - android

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

Related

Android Studio emulator minimum CPU requirement

I used to have HP Pro Book 4320s(2010 laptop) and I downloaded Android Studio with no problems. However when I tried to run emulator, Android Studio said CPU is too old to support emulator. So, what is minimum requirement for emulator?
Also if you can't run emulator, would real device be able to run an app regardless CPU or something?
In order to run the emulator, you need to have a CPU that supports HAXM, Intel VT-x, or AMD-V for virtualization. Processors like i3,i5,i7 and recent AMD processors have that support.
Yes, you can run the app on a physical device regardless of the CPU.
If getting access to a physical device is challenging, then I suggest checking out the Firebase Testlab . You can test your app in the cloud and see if it runs, quite cool.
Please have a look of below content according to android official documentation. I hope it will help you
The Android Emulator has additional requirements beyond the basic system requirements for Android Studio:
SDK Tools 26.1.1 or higher
64-bit processor
Windows: CPU with UG (unrestricted guest) support
HAXM 6.2.1 or later (HAXM 7.2.0 or later recommended)
The use of hardware acceleration has additional requirements on Windows and Linux:
Intel processor on Windows or Linux: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality
AMD processor on Linux: AMD processor with support for AMD Virtualization (AMD-V) and Supplemental Streaming SIMD Extensions 3 (SSSE3)
AMD processor on Windows: Android Studio 3.2 or higher and Windows 10 April 2018 release or higher for Windows Hypervisor Platform (WHPX) functionality
To work with Android 8.1 (API level 27) and higher system images, an attached webcam must have the capability to capture 720p frames.
https://developer.android.com/studio/run/emulator

I am getting this error "your cpu doesn't support vt-x or svm, android studio 2.1.1 in AMD 6300 processor"

I have enabled the virtualization in bios setup but when i try to launch the emulator i am getting the error "your cpu doesn't support vt-x or svm"
I have installed Intel haxm too.
2nd Aug 2019
I am using AMD RYZEN 3400G. Got the same issue and i fixed it in a very easy manner.
You have to enable Windows Hypervisor Platform
Go to Control Panel> Programs > Turn Windows features on or off and check the Windows Hypervisor Platform. And yes don't install HAXM.
EDIT : 27th Aug 2019
Only install the emulator image which is stable (or one version behind). For now use Android P image not Q, since I had a problem where Android Q image was not working with HyperV & only looking to install HAXM (which we know is not possible since it is not Intel)
Note : The image must not be installing HAXM along with it, otherwise it won't work.
The VT-x technology as well as the HAXM are unique to Intel processors. In the case of AMD processors, AMD-V is the counterpart in the virtualization tech front. Installation of HAXM in an AMD processor will not have any impact and hence the error "your cpu doesn't support vt-x or svm".
Reference link: http://tools.android.com/tech-docs/emulator
As stated in the link above
For best performance with Android Emulator 2.0, your system should
meet the following specifications: Windows: Intel® processor with
support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable
(XD) Bit functionality. AMD and Intel Atom processors do not support
VT-x virtual machine acceleration. Linux: Intel® processor with
support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable
(XD) Bit functionality or AMD processors with support for AMD
Virtualization™ (AMD-V™) 64-bit Operating Systems.
I would suggest to use an ARM image for the emulator instead of an Intel image. This would not require the use of HAXM nor VT-x.
I've been trying to track this down myself for a while (very similar setup, but Windows 10), and haven't seen anyone offering a solution beyond "You know HAXM's just for Intel, right?" either. The best info I've found so far is that the "Individual" edition of Genymotion (free for personal use) seems to be the best bet for emulation on AMD chips, and, almost hidden, a mention in the official docs that suggests Android Studio only works with SVM on Linux. I'm not even sure I'm reading the latter right, given the complete lack of references elsewhere to what should be an important fact, but it could be why that error is showing up – though if that's the case, it's definitely poorly worded.

can i install intel HAXM even if my processor does not support virtualization?

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.

How can I run Android emulator for Intel x86 Atom without hardware acceleration on Windows 8 for API 21 and 19?

I have not enabled Hyper V or hardware acceleration and don't want to either.
Is there any way that I can start android emulator for Intel x86 Atom Without hardware acceleration on Windows 8
I have created AVDs with every combination possible and each one has failed to start the AVD emulator instance , throwing the same error when starting
emulator: ERROR: x86 emulation currently requires hardware
acceleration! Please ensure Intel HAXM is properly installed and
usable. CPU acceleration status: HAX kernel module is not installed!
OR is it that, the images given for Intel Atom 86 and 64 cannot run without HARDWARE ACCELERATION AND hyper V for API 21 and 19
I have found lots of similar question and read almost all documentation, but it is not clear if they can or cannot run without hyper v and hardware acceleration, hence this direct question
How do you test on android in such cases ?
In current AVD manager you can't. You just have the opportunity to use ARM images which will not need hardware virtualization.
To run ARM images:
Open AVD manager.
Create a new 'Virtual Device' OR right click an existing image and select 'Duplicate'
Choose arm* instead of x86/x64.
Continue with the wizard.
Run!
Although this is the available solution but still a slow one !!
You can still force the use of the soft x86 emulator by running it from the command line and using the -no-accel option, i.e.
from the SDK/tools directory:
emulator -avd AVD_NAME -memory 768 -no-accel -gpu on
BUT this still won't work with the current (V24) SDK, because the current x86 system images crash the soft x86 emulator :-(
The only way I got this working again was to downgrade the SDK tools to V22.3 from here:
http://dl-ssl.google.com/android/repository/tools_r22.3-windows.zip and to buld an AVD using a downgraded system image, for instance https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-17_r02.zip. (So this is no help if you need to test on more recent versions of Android).
Google have moved on to an updated version of their emulator based on a more recent version of qemu, and provide binaries for arm and mips emulators, but have omitted to ship the x86 equivalent (there is no emulator-ranchu-x86.exe and emulator64-ranchu-x86.exe). If they did so, or if someone else went to the trouble of setting up and compiling their emulator source with the "x86" flag on, then _x86 soft emulation could conceivably be made to work again.
Short Answer: No. Until recently(about 1 month ago), you could do that but with the latest updates, it is not possible. (see Update to Android SDK Tools 23.0.5 and avd doesn't start).
I was doing something similar: Doing development in a virtual machine and hence couldn't use the Hardware acceleration features as they are available only in the host machine. I was using Intel x86 images with Use Host GPU option; as they were much faster than the ARM version even without hardware acceleration. But then, after this update, my emulator AVDs which were working earlier are no longer starting with the same exact error message. Also, both genymotion and Xamarin Android emulators can't be used as they also need hardware acceleration(they are actually VMs which use Hardware acceleration for speed, and hence can't be run inside another VM).
I have found this solution but haven't tried it yet. The basic idea is that to still develop inside a VM; but for testing connect to an Emulator running on the host machine(and this Emulator VM can now use the hardware acceleration feature).
Same issue as in Error in launching AVD:
1) Install the Intel x86 Emulator Accelerator (HAXM installer) from the Android SDK Manager;
2) Run (for Windows):
{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
or (for OSX):
{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\IntelHAXM_1.1.1_for_10_9_and_above.dmg
3) Start the emulator.
The usage of the Hardware acceleration depends on the System Image you choose on the emulator.
So,
Go to AVD manager, create virtual device, select hardware, click next.
Choose the System Image that does not require HAXM (hardware
acceleration) for running. (That is appears at the right bottom of
System image window.)
Note: for other systems that require HAXM, there no way to run them without hardware acceleration.
use bluestacks as a emulator for best performance. blusestack working fast without hardware based emulation
To connect bluestack to android studio.
Close Android Studio.
Go to adb.exe location.(Bydefault its C:\Users\Tarun\AppData\Local\Android\sdk\platform-tools)
Run adb connect localhost:5555 from this location.
Start Android Studio and you will get Blue Stack as emulator when you run your app.
Is there any way that I can start android emulator for intel x86 atom Without hardware acceleration on windows 8
Not with the standard Android SDK emulator, as it requires Intel's HAXM, and HAXM wants virtualization extensions to be enabled.
Whether Genymotion or something else from another independent developer can support your desired combination, I cannot say.
refer intel.com's requirements : Important: Intel HAXM cannot be used on systems without an Intel processor, or with an Intel processor that lacks the hardware features described in the "Hardware Requirements" section above.To determine the capabilities of your Intel processor
[Installation Instructions for Intel® Hardware Accelerated Execution Manager ] https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x
My PC does not support vt-x, I can not use android studio 1.0.2.
yes is possible to run your android emulator without have a hardware accelerator.
In fact to do that, you need to open your android virtual device.
When you reached to system image configure, it suggest you which version of android image you want to use.
Whatever version of android system image that you select,you need to make sure that,ABI is armeabi-v7a and, you target is System image ameabi-v7a with google APIs.
And then complete the rest of task and check out your emulator.
You need "VT-x supported processor" at least to run Android emulator with Hardware acceleration.
If you have enabled or installed "Hyper-V" in your windows 8 then please remove it and disable the "Hyper threading" and enable "Virtualization".
I've run into the same problem, I found the solution at http://developer.android.com/tools/devices/emulator.html#vm-windows
Just follow this simple steps:
Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.
After the download completes, run [sdk]/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe
Follow the on-screen instructions to complete installation.
I have a pc with intel c2d without hardware accelaration i am having same problem in android studio. firstly i get bored with android studio and installed eclipse+sdk+adt then i have installed every thing and started emulator it worked then the same emulator worked in android studio for direct launching application in android studio and i have also runned the sample app that emulator so you can run android studio without virtualization technique even your processor does not sopport vt-x
When Run 'app' (green triangle):
In Device Chooser select Launch emulator and click the button [...]
Rigth click on Nexus (or other) click on Duplicate
In the O.S. (Android 6.0 example) click change:
Clic on Show downloadable system images.
Look for armeabi-v7a O.S. and click download.
Set this O.S. in the device.
Finish, and choose this Device for the emulation.

Intel's HAXM equivalent for AMD on Windows OS

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.

Categories

Resources