Error while starting emulator - android

I am running an android application on emulator. It was working fine till yesterday and today I updated android studio. I am getting following error.
How to resolve this?
emulator: WARNING: Increasing RAM size to 1GB emulator:
ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM must be updated (version 1.1.1 < 6.0.1).

I had to uninstall version 1.1.1 by going to:
C:\Users\userid\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager>
then type in silent_install.bat -v to verify the current version.
then silent_install.bat -u to uninstall
then silent_install.bat to install version 6.0.1 in my case.

Go To Your Android SDK ----> Run SDK Manager as Admin.
GO down and check Extras---> Update Intel Emulator Accelator (HAXM installer).
Then Restart Android Studio and Run Your AVD.

I had the same issue, apparently, i had installed HAXM manually directly from Intel. And I guess it's conflicting with that of the Android SDK.
So I downloaded and installed the updated version from Intel at HAXM download page. This solved my HAXM [conflict] problem

At first you have to uninstall HAXM from:
Control panel > Add/remove program
After that go to here and download HAXM and install it manually.
This worked for me .

If the SDK manager thinks you have the latest version, simply go to the SDK folder and run the silent_install.bat file.
Mine was here:
C:\Users\userid\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\silent_install.bat
It will start working immediately, no need to restart Android Studio. It's probably because the SDK manager had insufficient permissions.

When I tried to install version 6.0.3 after I downloaded the update, intelhaxm-android.exe showed a windowed message for 1/10sec (i.e. I could not read it, since I don't know how to stop time) and did nothing after that. I had to locate and run 'setup.exe' among the files extracted by intelhaxm-android.exe. This time there was a prompt saying "Intel Hardware Accelarated Manager version 1.1.1 is already installed. Do you want to install version 6.0.3?" I replied 'Yes', an installation Wizard was opened and that was it. HAXM 6.0.3 was finally installed and the emulator run again.
(Note: You might have to locate the exact 'setup.exe' file (there are four od them) that was run in the installation. You can locate it towards the end of the log file created by intelhaxm-android.exe. The message is something like that: "{temp folder}\Intel\HAXM\6.0.3\2016-09-13_14-35-22\setup.exe was launched".)

Related

HAXM device is not found in Windows 7

I am trying to develop a mobile application using Android Studio but I am always getting a pop message with below message.
Intel HAXM is required to run this AVD.
HAXM device is not found.
Enable VT-x in your BIOS security settings, ensure that HAXM is installed properly. Try disabling 3rd party security software if the problem still occurs.
Things I have tried:
Installed the HAXM installer on SDK Manager
Went to Extras -> Intel -> Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe". But getting error message as "Failed to configure driver: unknown error. Failed to open driver."
I am using:
Android Studio 3.5 on Windows 7.
Could you kindly let me know that Windows 7 supports Android application development using Android Studio?
Could you kindly let me how this issue can be addressed?
For me, the problem was exactly in the HAXM version (Currently 7.5.4). I rolled back to version 7.5.1 and it worked.
Did the following (For Windows):
Found the HAXM installer (Tools -> SDK Manager, Follow the Android SDK Location\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe), using it deleted HAXM.
I downloaded HAXM from an older version (7.5.1) from https://github.com/intel/haxm/releases
Installed
Restarted Android Studio and it worked
To solve this problem, download and install this update https://www.microsoft.com/en-us/download/details.aspx?id=46148 from Microsoft and then restart your computer.
This solved it for me on windows7 64 bits and android studio 3.5.3
I hope it will help you as well.
For me this problem was solved by disabling Hyper-V on Windows 10.
The below are the steps to disable Hyper-V:
In "Control Panel", select "Programs and Features".
Select "Turn Windows features on or off".
Expand "Hyper-V", expand "Hyper-V Platform", and then clear the "Hyper-V Hypervisor" check box.
For me, I uninstall 7.6.5 from SDK manager and download 7.6.6 from https://github.com/intel/haxm/releases, install it as Administrator, then reboot. It works.

Emulator: WARNING: HAXM 6.0.5 is installed. Please install HAXM >= 6.2.1 to fix compatibility issues on Mac

Emulator is not running. I had already installed HAXM 6.2.1. Please checkout the image.
So, I just reinstalled the HAXM. Anow now another problem occurs. Please checkout image second and third.
6:54 PM Emulator: Reason: Invalid argument
6:54 PM Emulator: coreaudio: Could not lock voice for audioInputDeviceIOProc
Navigate to [Android SDK Folder] --> Extra --> Intel --> Hardware_Accelerated_Execution_Manager
and double click on HAXM installer intelhaxm-android.exe (on Mac IntelHAXM_6.2.1.dmg) and install it manually.
If you do not have latest version of HAXM then you can open sdk manager in android studio and download it.
Although, this should be installed automatically when you install Android Studio. See below.
Answering #DougThompson Question:
What if HAXM installer not installing automatically ?
In that case,
you can download HAXM installer from https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm.
Keep the installer at [Android SDK Folder] --> Extra --> Intel
Extract and install it manually.
now you are done.
On a Mac
navigate to [ANDROID_HOME]/extras/intel/Hardware_Accelerated_Execution_Manager
open and install IntelHAXM_6.2.1.dmg
The easiest way to do that from the CLI is to type open IntelHAXM_6.2.1.dmg then double click the IntelHAXM_6.2.1.mpkg file and follow the installation prompts.
Note: I tried running the silent_install.sh file in that folder and it failed so I'm guessing that's the root problem here–that script may have a bug with how it mounts the DMG.
With Android Studio, you can find HAXM Installer under SDK tools tab.
What happens if you cannot uninstall it from the Control Panel?
What happens when you cant locate the old version to download, to put into a folder for the MSI to uninstall?
This is where your fancy 'clean up my PC' programs removed all the old installer temp files. So do you have to have a external hard drive for all your old installs? It would have been so nice if they used NPM and the uninstaller could always find the repository to remove the old version before updating to the new one.

Cannot launch AVD in Emulator [Android Studio 2.2]

I'd installed HAXM emulator but am still getting the problem in Running AVD.
provide me a solution for this error?
your android SDK has an incomplete update , specifically the HAXM installer for running the emulator is corrupted some how.
You need to reinstall the required platforms and the system images for those platforms
Go to the local.properties and change the sdk path to the new sdk (if downloaded from scratch), otherwise it will work if the current sdk is updated perfectly.

Cannot start emulator on Android Studio 2.0 Preview b3

After updating both Android Studio to 2.0 Preview 3b & Android SDK Tools to 25rc1, Android studio would encounter an error when starting a Android 6.0 emulator with Google services:
The error seem to indicate that HAXM is of the wrong version (1.1.1 v.s. 6.0.1), however in Settings->Android SDK->SDK Tools the most up-to-date Intel x86 Emulator Accelerator version is installed (i.e. 6.0.1), so the error message doesn't seem to be correct.
Here's the emulator setting:
Having the 6.0.1 installer downloaded is different from actually running the installer.
Go into your folder, to extras/intel/Hardware_Accelerated_Execution_Manager and execute the intelhaxm-android.exe installer.
The UI under SDK Tools is a bit confusing. When it says 6.0.1 is installed, it's really saying that it downloaded the HAXM 6.0.1 installer. You still need to run the installer to install it.
Or, you can just download and install it manually from here.

Android SDK Manager and AVD Manager doesn't have the correct information and fails to update on Ubuntu

I'm trying to install Android SDK on Ubuntu but fail when I try to use the SDK Manager and AVD Manager to install Android platforms.
I've downloaded: android-sdk_r04-linux_86.tgz
The I start the SDK Manager and AVD Manager (UI) according to the README file:
./tools/android
And I get the following
Installed Packages:
- Install SDK Tools, revision 4
Available Packages:
- https://dl-ssl.google.com/android/repoisotry/repository.xml
- This repository requires a more recent version of the Tools. Please update-
- Android SDK Tools, revision 4
- Archive for Linux
(comment: funny since rev 4 seems to be what's installed this is what seems to be installed)
Now doing an update of the Android SDK Tools, revision 4 or everything results in
99% progress and then the application hangs.
Here's the console feedback:
johanc#johan-desktop:~/android/android-sdk-linux_86$ tools/android
Starting Android SDK and AVD Manager
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Error: null
In the app I choose to upgate the following package:
Package Description
Android SDK Tools, revision 4
Archive Description
Archive for Linux
Size: 15 MiB
SHA1: 99380c9330c1c3728c836206947350cc00fa28c2
Site
https://dl-ssl.google.com/android/repository/repository.xml
The console output reads (and the app hangs at 99%):
Exception in thread "Installing Archives" java.lang.AssertionError
at com.android.sdkuilib.internal.tasks.ProgressTask.incProgress(ProgressTask.java:97)
at com.android.sdkuilib.internal.repository.UpdaterData$2.run(UpdaterData.java:358)
at com.android.sdkuilib.internal.tasks.ProgressTask$1.run(ProgressTask.java:135)
I went to Eclipse's "help > check for updates" menu and blindly accepted all the updates :). Did a restart of the app and everything was cool.
What version if Java are you running?
Some earlier versions ofJava 1.5 were lacking a proper XML validator, and made the XML validation fail in the SDK Manager (we didn't properly checked that a validator were present).
Unfortunately once the validation fails, it reverts to the wrong code path and behaves as if you have an older version of the tools.
We are fixing this for the next version of the SDK Manager, but in the mean time you can try to update your version of Java.
1) Open SDK and AVD manager - for that Give command tools/android
2) Go in to the settings
3) Make TRUE the option "Force to be fetched using http"
4) Then go to install package and update the package
I figure out that I didn't see the Settings option on the left column because I was launching the SDK Manager from within Eclipse, like the directions say. When I launched it from the executable where I installed it, it comes up with more options, Settings being one of them. I first thought I needed to force https to use http, but what I really needed to do was enter my proxy settings, which is also one of the Settings options. Hope this helps.
Downgrading to previous version of the SDK got this working for me. I experienced the same problems on mac 10.5 with the latest Android sdk (r04-mac) and could not find any other way to resolve the issue.
Previous versions are available in the SDK Archives.
When I got this error on Mac osx, it was because I was already using the most up-to-date set of tools. Not sure why it didn't recognize this, but when I unchecked "Display Updates Only" it showed that the available package was version 5, which matched the version listed in Installed Packages.
I was having this problem as well. I looked at which version of java my Karmic Ubuntu was running and the link it pointed to was gij-4.4 (GNU interpreter for Java) (I had to do a little tracing of links)
I switched /usr/bin/java to point to /usr/lib/jvm/java-6-sun/bin/java and all is now well.
rm /usr/bin/java
ln -s /usr/lib/jvm/java-6-sun/bin/java /usr/bin/java

Categories

Resources