Skjaz
Skjaz

Reputation: 21

Android Studio: Hardware Acceleration

I installed Android Studio. Downloaded the SDK updates, including the HAXM one, and set up my own AVD. Upon trying to start up my AVD, or even the starter AVD that was already there, I get an error stating that emulator: ERROR: x86 emulation currently requires hardware acceleration!.

I've done some googling and tried to finish the install of HAXM using the install file in the Android/SDK folder. I was promptly told that the installation failed and that my CPU didn't allow for Intel Hardware Acceleration, or something like that. I read somewhere that the only way I can use Hardware Acceleration on AMD is if I were on Linux, with which I have no experience with. So I tried giving up. Now I can't figure out how to disable Hardware Acceleration entirely in Android Studio. I haven't even begun learning how to write in android because I can't get an AVD up and running.

Does anyone have any tips?

I'm running an AMD system with 8GB of ram. More specifically, I'm using an AMD FX-4130 Quad-Core Processor on a GIGABYTE GA-970A-DS3 Motherboard.

Upvotes: 0

Views: 8895

Answers (3)

wkirk
wkirk

Reputation: 9

Take an android phone with its USB cord then follow these steps:
1. plug in phone to computer.
2. on the phone goto: settings>about device scroll to find build number
3. press build number 7x (this enables developer mode)
4. go back to settings press developers options select usb debugging, include bug reports, verify apps via usb, and GPU force rendering.
5. Check for device connection on the computer
6. add in build.gradle under "buildTypes{" write this

debug {  debuggable true  }

then when you run your project you should be able to see your phone in the avd selection then select it. Your phone will awaken automatically with your application running except it will be a little semi-efficient boot process. Also do not forget to remove the debug code from your gradle file when you app is finished.

Upvotes: 0

Inzimam Tariq IT
Inzimam Tariq IT

Reputation: 6758

You can use Genymotion instead of default one. Its faster than the default one. And this emulator is compatible with both Intel and AMD. Genymotion just uses Virtualbox to run Android in VM.

Here's a link to Genymotion .
Genymotion , Genymotion user guide

it may help you.

Upvotes: 0

aleksikallio
aleksikallio

Reputation: 1932

Unfortunately AMD's virtualization technology AMD-V is not compatible with Intel HAXM. Your only choices are to either get familiar with Linux or use a ARM-based AVD, which doesn't require virtualization.

You can find instructions for Linux on Android Developers' document on Using the Emulator.

Upvotes: 1

Related Questions