Error Installing Emulator In Android Studio - android

I'm not able to install Emulator in my laptop. It's showing an error, could someone suggest what should I do ? I've attached the error screenshot :

You need to install HAXM from the SDK Manager and go the root directory and install the HAXM and then you are good to go!!

This problem occurs when the virtualization technology is not enabled for your device.It can be solved by enabling it.
(For a windows based device)Go to
Control Panel->Programs and Features->Turn windows feature on or off->Hyper-V
Check this option and reinstall.
If this option is not present in your computer then try doing from boot-menu:
1.) Press F10 (Computer Boot Up)->BIOS->Security->System Security-> Virtual Technology (VTX)
Enable
Save and Exit
2.)Goto sdk Folder:
F:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Run intelhaxm-android.exe
You will see a dialog box which says, "Completed Intel Hardware Accelerated Execution Manager Set Up Wizard. Click the Finish Button to exit the wizard"
Once this works, open android studio, and try running the emulator.

Related

Failed to Run AVD on AndroidStudio 2.1.2 Win7

I'm new to Android, i have downloaded Android studio 2.1.2 and SDK. After reading references from google i wrote HelloWorld application, which can run on my phone.
But due to certain reasons i have to run AVD in AndroidStudio to execute my application. but is shows following error
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.
Following things i have done so far.
Installation of HAXM manually.
Enabled Virtualization from BIOS.
Some of the references on stackoverflow suggested to uncheck Hyper-V
option in Turn on off windows feature. (i have found nothing like
hyper-V there)
I'm running Windows 7
I'm just stuck here. any help would be highly appreciated.
EDIT:
I have read that Dell Optiplex760 does not support virtualization.
but i can run VirtualBox on my machine. moreover i have seen Virtualization option in BIOS. Also Secureable shows that my system supports Virtualization.
First, reboot you system, press the hot key to enter the BIOS.
enter BIOS
Second, enable the Inter(R) Virtualization Technology and save.
enable VT
Third, start up your computer, enter CMD, input "sc query intelhaxm" to check the state.
CMD command
Forth, start up your AVD, if error happens like that. Go next step.
error tips
Finally, go into your SDK directory, reintall the intellhaxm-android.exe again, then launch the AVD Monitor.
reinstall haxm
I hope it works.

How do you get the VS Android Emulator Images to launch?

I've installed the RTM build of VS2015 with the Android Tools. I can launch the emulator manager and see the list of installed images. When I click the green triangle to start an image, it shows a progress bar and the text "Launching emulator..." and XDE opens up with the message "OS is starting"
After a while, XDE shows an error message:
[Window Title]
Visual Studio Emulator for Android
[Content]
The emulator is unable to connect to the device operating system:
Couldn't set up the UDP port.
Some functionality might be disabled.
[Close]
Strangely, when I look in Hyper-V Manager, the image seems to be running perfectly.
I have already removed the GuestDisplayNameProvider line from xdesku.xml, which was previously resulting in the error: "Failed to read from dev/hw_random: No such device" on startup.
So I finally fixed this issue, it's because I had broken virtual ethernet adapters. Here's what I did to fix it.
Remove Hyper-V through by turning off the windows feature.
Reboot
Open device manager and go to network adapters.
Remove all of the Hyper-V Virtual Ethernet Adapters
Enable Hyper-V through by turning the windows feature back on.
Reboot
Try to run your emulator, you should notice that the Virtual Ethernet Adapters are recreated and working.
This occurred after disabling then re-enabling Hyper-V. To fix the problem:
Delete all virtual switches in Hyper-V Manager, delete all virtual machines in Hyper-V Manager, uninstall all profiles in Visual Studio Emulator for Android. Then reboot the machine (just to be sure). Then, open Visual Studio Emulator for Android, download the profile you want, and then click "play". The relevant switches, VMs, etc will all get created fresh now.
Go to "C:\Program Files (x86)\Microsoft XDE\10.0.10586.0\SKUs\Android\" and open xdesku.xml with notepad and remove the following line: GuestDisplayProvider="VsEmulator.OpenGLGuestDisplay.
If your emulator freezes on "OS is starting" but Hyper-V shows "OS" , follow the following link:
https://stackoverflow.com/a/32006888/948236
It works for me.
Add new virtual switch helped me a lot.

Error 'reg' is not recognizable while installing Android Studio and SDK

Here is what happened while i tried to install Android Studio on my Windows 8.1 PC!
I tried uninstalling and reinstalling a couple of times with the same result.
Try this. Uncheck the checkbox for Intel HAXM during installation of Android Studio
When Android Studio installation is complete, go to your SDK manager and download Intel HAXM from there
You can then follow the instructions to install Intel HAXM from that point.
Hardware Accelerated Execution Manager (HAXM) is a hardware-assisted virtualization engine that uses Intel Virtualization Technology to speed up Android development.
So i think you have got a problem in HAX>>>
First of all,
Click on Turn Window Features on and off in your control panel.
Uncheck Hyper-V option and restart your system.
That also if does not work then>>>
Follow the following steps:
1.Press F10 (Computer Set Up) - BIOS - Security -System Security -Enter - Virtual Technology (VTX)-Enable-File
then,Save and Exit
2.Goto sdk Folder:
F:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager Run
intelhaxm-android.exe
3.You should be seeing a dialog box which quotes,
"Completed Intel Hardware Accelerated Execution Manager Set Up Wizard.
Click the Finish Button to exit the wizard"
After all this,try running the emulator in android studio where you will see HAX is working & your problem is solved...

Android Virtual Device & Intel HAXM

I've just set up a new PC with Android Studio, and can't launch any Virtual Devices. When I start a device I get the message-
Starting emulator for AVD 'Nexus_5_API_21_x86'
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!
When I run the HAXM installer, it says
This computer meets the requirements for haxm but intel virtualization is not turned on
But in BIOS its definately ticked as being ON.
Any ideas why I can't get it working ?
Thanks.
so some antivirus prevent HAXM running, and make sure you don't have Windows Hypervisor running. (Under programs list, windows, under H).
It could be you need to set your NX (XD) bit to on. As admin run from command line:
bcdedit /set nx AlwaysOn
Otherwise what is your CPU?
Windows 8. Android Studio.
Make sure if virtualization is enable : go through those steps provided below.
Goto setting -> change pc settings-> general->then see on right side
by scrolling the frame down-> you will see under advance start up
restart now button press it->then choose an option window will
open->choose troubleshoot->under troubleshoot choose Advance
option->then under Advance options choose UEFI Firmware option->then
press restart->press f10 for BIOS->see the menubar where you will
find system configuration menu inside it you will see the
virtualization Technology "enable" it ->now go for exit saving
changes in exit on menu bar..
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
(in username : please enter valid user name)
install it and restart your Android Studio.
if you make few changes on above process it is same for win 7 and also same for eclipse
hope it helps have fun!!

Android Virtual Device not running

my avd is not running on eclipse. sometimes it says, haxm is not installed. sometimes just a black screen appears and nothing happens. why is this happening? i tried to reinstall but nothing happened. but it was working few days ago and suddenly this is happening. i cant run my apps on emulator. how to fix this?? i am using a windows 10 tech preview 64 bit. i have tried to run eclipse on my laptop windows 7 64 bit with different version, same problem. so there must be some technical problem that i dont know, pls help.....
HAXM, the Intel Android Virtualization Technology is incompatible with Hyper-V. Turn off Hyper-V and give it a go again. Hyper-V will often be installed if you have installed Visual Studio with Windows Phone tools. Or maybe Hyper-V is just turned on somehow?
Or from an admin command prompt run the following. Note to get an admin cmd prompt, right-mouse the windows icon, click Command Prompt (Admin ).
To turn off Hyper-V run this: bcdedit /set hypervisorlaunchtype off and then reboot
To turn Hyper-V back on, run this: bcdedit /set hypervisorlaunchtype auto And then reboot
You can turn off Hyper-V in the services menu (type "Services" in the Search thingy), and also use the Services menu to turn it back on. Even though it may not be necessary I still reboot after doing it this way.
Blog post on this here - Blog post on this here - http://www.devfish.net/post/2015/08/18/error-x86-emulation-currently-requires-hardware-acceleration-android-on-windows.aspx
Healy in Tampa
Android emulators are not super reliable. Can you try using genymotion (http://www.genymotion.com/). It is free for personal use and it is super fast.
Open the Android SDK Manager from Eclipse tab "Window", check the box at the very bottom in the Extra folder that says "Intel x86 Emulator Accelerator (HAXM installer)" and click Install package. I think you are using an emulator with VM Acceleration.

Categories

Resources