Android Studio emulator with AMD processor

Asked

Viewed 20,361 times

4

I’m trying to start developing apps for Android, but unfortunately I’m having some problems using the Android Studio emulator when it comes to testing the app. Basically while trying to run I get the following error:

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!

I researched a little and read some solutions, among them

  • Disable Hyper-V using d"ism.exe /Online /Disable-Feature:Microsoft-Hyper-V"

  • Disable hardware-assisted virtualization in Avast

  • After doing both things try to install Intel HAXM

And all this went wrong. Whenever I try to install Intel HAXM I get an error

This computer does not support Intel Virtualization Technology (VT-x). HAXM cannot be installed. Please refer to the Intel HAXM Documentation for more information.

Researching further read that there is no way to install this Intel HAXM using AMD processor. Is that really the case? You have no solution to be able to use the emulator using an AMD processor?

  • AMD processors do not implement Intel’s VT-x instructions in the same way that Intel does not implement AMD-V instructions. These instructions are critical to virtualization. In this case, Android supports virtualization only through VT-x instructions, and thus can be virtualized only on Intel processors. It is not possible to use an x86 image on an AMD processor (even emulating). Intel created this because the x86 port of Android is made by it, and it was the way they found to protect the investment: depending on a set of instructions that the competitor does not implement.

4 answers

1

Can’t use hardware acceleration for the emulator with AMD processors on Windows and Mac if I’m not mistaken, AMD processors are only supported on Linux according to documentation.

In this case you should use an emulator image that is not for x86 processors, but the execution should be very slow. The ideal still think would be you directly use an Android device to debug, think faster and practical than using emulators.

0

I’m having the same problem and it doesn’t seem like there’s even a solution to it.

What is working for me is to use the Android emulator "Andy", which I had already installed on the PC for other reasons, so it was very practical.

If you already have Andy open, when you click run 'app' a window will appear where the emulator will appear as if it were a real device connected and will simulate right there.

0

If Voce needs to debug your application, has the emulator Bluestacks, I use and find fast for debugging apps, I can access the database directly, anyway...try to take a look, maybe help you. http://www.bluestacks.com/download.html to access the debug mode, sometimes you have to go to cmd and type "adb connect 127.0.0.1", after that it appears in Android Studio

0

If your processor is AMD it really has no way to use HAXM technology. But it has how to use the emulator of android studio. Just open AVD Manager > Creat virtual device (choose the desired configuration, or create one) > next > Ecolha the ABI that starts with "Amr" (You have two, you can choose any one of them, I use the TARGT - Google Apis). Choose a name for it. When you run it will appear the available emulator options, then just choose what you created. Remember that if there is an error in the project code that is open or configuration errors, the emulator will not open. The difference in not being able to use HAXM is that the emulator will be very slow. Anyway the best option is to test your applications on a real device, is the fastest.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.