Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update to Android SDK Tools 23.0.5 and avd doesn't start

I am running on Windows 8.1 x64, developing Android apps using ADT Bundle. Previously (before updating the Android SDK Tools) the AVD was working very correctly and after the update, it says the following error while starting the AVD

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!

I tried to delete the avd, avd-folder from the windows user-specific folder and re-created the similar avd but no progress.

How can I run the avd again? (after the SDK update)

like image 432
Amit Trivedi Avatar asked Oct 14 '14 06:10

Amit Trivedi


People also ask

What is the difference between SDK and AVD?

The former is called SDK Manager, which integrates easy updates for the Software Development Kit (SDK), including tools, platforms, and other components into packages. The latter is AVD Manager, which allows you to create and manage Android Virtual Devices (AVDs). AVDs are basically device emulators.

How do I update Android SDK?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

How do I fix Android SDK missing?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

How do you fix failed to install the following Android SDK packages as some Licences have not been accepted?

Failed to install the following Android SDK packages as some licences have not been accepted. To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.


2 Answers

Create emulator in CPU/ABI in ARM, this error only exist for Intel processor.

If you want to create AVD CPU/ABI in Intel gor for this process, Make sure you have instaled HAXM installer on your SDK Manager.

After you download it make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe

If you get the error "VT not supported" during the installation disable Hyper-V on windows features. You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. You will also need "Virtualization Technology" to be enabled on your BIOS

like image 111
Shivputra N Avatar answered Oct 12 '22 19:10

Shivputra N


I've run into the same problem here and in my research I was able to find a documentation on the android developer site that helped me out with this.

  1. Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.

  2. After the download completes, run [sdk]/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe

  3. Follow the on-screen instructions to complete installation.

  4. After installation completes, confirm that the virtualization driver is operating correctly by opening a command prompt window and running the following command:

    sc query intelhaxm

You should see:

 SERVICE_NAME: intelhaxm
   ...
   STATE              : 4  RUNNING
   ...

Refer to this documentation here: Using the Emulator - Configuring VM Acceleration on Windows

Hope it helps.

like image 41
Jorge Campos Avatar answered Oct 12 '22 19:10

Jorge Campos