Could not start avd android studio что делать
Перейти к содержимому

Could not start avd android studio что делать

  • автор:

Проблема с AVD в android studio,что делать?

Добрый вечер.Я установил android studio и у меня возникла проблема с при запуске AVD.Я во всем этом новичек,поэтому обращаюсь за помощью.Android studio выдает следующую ошибку:»Cannot launch AVD in emulator.
Output:
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!
«;Хотелось бы узнать в чем причина ошибки и как ее исправить.Заранее спасибо за помощь.

  • Вопрос задан более трёх лет назад
  • 31505 просмотров

Комментировать

Решения вопроса 0

Ответы на вопрос 2

GavriKos

Поиском по тостеру не пробовали пользоваться? Сто раз уже этот вопрос обсуждали:
https://toster.ru/search?q=x86+emulation+currently.

Ответ написан более трёх лет назад

Нравится 2 1 комментарий

Could not start AVD

I install the latest version of Android Studio Android Studio 4.0.1.then after i open Android studio and create sample project.after that i open AVD manager and «create virtual device»,then after i download Android 10.0+ API 30 level emulator. Issue is AVD not start.please check Images PC configuration: Window 7 Professional,Service Pack 1, 8GB RAM,64-bit,intel core i3,Asus AVD Manager Vertual Device Configuration I already enable VT- x in my pc

8,206 8 8 gold badges 49 49 silver badges 63 63 bronze badges
asked Aug 16, 2020 at 12:17
2,383 1 1 gold badge 26 26 silver badges 44 44 bronze badges
Add your PC specifications.
Aug 16, 2020 at 12:30
Please first confirm that VT-x is enabled in your BIOS. You might have forgotten to save.
Aug 17, 2020 at 8:09
I have already save.My PC BIOS option displayed as VT-d. @rayalois22
Aug 17, 2020 at 10:58

In your BIOS, do you also have an option called Intel Virtualization or Intel VT. If so, please ensure that it is enabled. Some BIOS utilities have Intel VT instead of the VT-x. Note: VT-d is not equivalent to VT-x.

Aug 17, 2020 at 12:12
Make sure you can start AVDs for other api levels.
Aug 20, 2020 at 14:37

4 Answers 4

I made VT-x enabled and saved it many times,but AVD did not start. I changed lithium battery on MB,so now AVD works.

I think if lithium battery on MB is low,BIOS will not work properly.

answered Dec 1, 2020 at 7:08
46 2 2 bronze badges
Solve after confirm that VT-x is enabled in your BIOS.
Jan 25, 2021 at 14:42

I did this and it solved my problem:

  1. Go to SDK Manager -> SDK Tools -> remove «Intel x86 Emulator Accelerator (HAXM Installer)»
  2. Click OK to uninstall HAXM.
  3. When the uninstall process is complete, close SDK Manager, open it again and install HAXM again the same way.
  4. Optional: Wipe data of your emulator and perform a cold boot.
  5. If the problem still exists uninstall/install Android emulator in SDK Manager -> SDK Tools as well.

If your system has low resources (RAM, CPU) like mine, it just can’t. Don’t push it.

answered Jan 26, 2021 at 18:02
648 1 1 gold badge 8 8 silver badges 27 27 bronze badges

It might be the issue with HAXM. To resolve this issue first install HAXM in AVD creation part. If it is showing installation failed then we should manually install it into the system.

For that, go to the Intel website, download the HAXM installer that they provide (instead of using the one downloaded through Android Studio).

After installing HAXM enable intel virtualization support in your BIOS. By default virtualization will be disabled. You can use the following link to enable virtualization in your BIOS.

Connecting Android Devices

You can connect Android devices to the development PC using USB cables to build, run, debug, and analyze applications from Qt Creator.

Note: Qt Creator only detects a device and connects to it after you enable USB debugging on it.

To develop for Android, you must install a tool chain for building applications for Android devices on the development PC. Qt Creator can automatically download and install the tool chain and create a suitable build and run kit that has the tool chain and the Qt version for Android for the device’s architecture. To enable helpful code editing features for Java, such as code completion, highlighting, function tooltips, and navigating in code, add a Java language server. Qt Creator integrates the Android Debug Bridge ( adb ) command-line tool for deploying applications to Android devices, running them, and reading their logs. The adb tool includes a client and server that run on the development host and a daemon that runs on the emulator or device. The following video shows the whole process from installing Qt for Android to debugging an application on an Android device:

Requirements

To use Qt Creator to develop Qt applications for Android, you need Qt for Android and a tool chain that Qt Creator can automatically download, install, and configure for you. For more information about the requirements for developing with a particular Qt version, see the documentation for that Qt version. The links in this manual lead to the latest released Qt reference documentation.

Specifying Android Device Settings

  • Download and extract the Android SDK Command-line Tools.
  • Install or update the essential packages such as NDKs, build tools, and platform tools.

To set up the development environment for Android:

  1. Select Preferences >Devices >Android. <Android preferences>» /></li>
<li>In the <b>JDK location</b> field, set the path to the JDK. Qt Creator checks the JDK installation and reports errors. By default, Qt Creator tries to find a supported AdoptOpenJDK or OpenJDK installation. If it cannot find one, you must set the path manually. If you have not installed a supported JDK, select <img decoding=to open the JDK download web page in the default browser.

Note: Use a 64-bit JDK because the 32-bit one might cause issues with cmdline-tools , and some packages might not appear in the list.

Manual Setup

Note: Use the latest Android SDK Command-Line Tools. Qt Creator does not support Android SDK Tools version 25.2.5 or earlier because it cannot fully integrate them.

However, if the automatic setup does not meet your needs, you can download and install Android SDK Command-line Tools, and then install or update the necessary NDKs, tools, and packages. For more information, see Getting Started with Qt for Android.

Viewing Android Tool Chain Settings

A JSON configuration file defines the Android SDK Command-Line Tools download URL, the essential packages list, and the appropriate NDK for each Qt version. The file is in the Qt Creator resource folder:

# Linux and macOS ~/.config/QtProject/qtcreator/android/sdk_definitions.json # Windows C:\Users\Username\AppData\Local\QtProject\qtcreator\android\sdk_definitions.json

For example, the SDK configuration file sets the NDK version 19.2.5345600 for use with Qt 5.12.0 to 5.12.5 and Qt 5.13.0 to 5.13.1:

"specific_qt_versions": [ < "versions": ["5.12.[0-5]", "5.13.[0-1]"], "sdk_essential_packages": ["build-tools;28.0.2", "ndk;19.2.5345600"], "ndk_path": "ndk/19.2.5345600" >]

You can view the latest version of the configuration file that is up-to-date with the Android SDK and NDK changes, sdk_definitions.json, in Git.

Managing Android NDK Packages

To view the installed Android NDK versions, select Preferences > Devices > Android.

<Android NDK and SDK checks></p>
<p>» /></p>
<p>The SDK Manager installed the locked items. You can modify them only in the <b>Android SDK Manager</b> dialog. For more information, see Managing Android SDK Packages.</p>
<p><img decoding=

To manually download NDKs, select .

To use the selected NDK version for all Qt versions by default, select Make Default.

To add custom NDK paths manually to the global list of NDKs, select Add. This creates custom tool chains and debuggers associated to that NDK. However, you have to manually create a kit that uses the custom NDK. For more information, see Add kits.

Managing Android SDK Packages

Since Android SDK Tools version 25.3.0, Android has only a command-line tool, sdkmanager, for SDK package management. To make SDK management easier, Qt Creator has an SDK Manager for installing, updating, and removing SDK packages. You can still use sdkmanager for advanced SDK management.

To view the installed Android SDK packages, select Preferences > Devices > Android > SDK Manager.

<Android SDK Manager></p>
<p>» /></p>
<p>You can show packages for the release channel you select in <b>Show Packages</b> > <b>Channel</b>. Common channel IDs include <b>Stable</b>, <b>Beta</b>, <b>Dev</b>, and <b>Canary</b>. To show and update also obsolete packages, select <b>Include obsolete</b>. To filter packages, select <b>Available</b>, <b>Installed</b>, or <b>All</b>.</p>
<p>To update the installed Android SDK packages, select <b>Update Installed</b>. Select the packages to update, and then select <b>Apply</b>.</p>
<p>To specify advanced sdkmanager settings, select <b>Advanced Options</b> and enter arguments in the <b>SDK Manager arguments</b> field. <b>Available arguments</b> lists the arguments with descriptions.</p>
<p><img decoding=
If there is no such option, manually add https://dl.google.com/android/repository/extras/intel/addon2-1.xml to the SDK Manager’s list of add-on sites via Tools > Manage Add-on Sites… > User Defined Sites > New…

  • Click the «Install package…» button.
  • Review the Intel Corporation license agreement. If you accept the terms, select Accept and click Install.
  • The SDK Manager will download the installer to the «extras» directory, under the main SDK directory. Even though the SDK manager says «Installed» it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the «extras» directory to get it installed.
  • Run the installer inside the /extras/intel/Hardware_Accelerated_Execution_Manager/ directory and follow the installation instructions for your platform.
  • Installing Standalone Intel HAXM on Windows

    Warning: Intel HAXM installation will fail if your system does not meet the system requirements, including support for Intel processor features, such as Intel Virtualization Technology (Intel VT).

    1. Download the installer package from https://github.com/intel/haxm/releases or using the SDK manager.
    2. Run the installer (and accept the UAC prompt, if applicable).
      If an older version Intel HAXM is already installed, you will see a notification dialog: Click «Yes» to upgrade Intel HAXM, or click «No» to exit the installation and keep the currently installed version of Intel HAXM.
    3. You will see a setup wizard screen:

    Click «Install»
    Note: You can access the documentation by clicking Intel HAXM Documentation

    When the Intel HAXM installation is finished, you will see the completion screen:

    Click «Finish» to exit the installer. Intel HAXM is now installed and ready to use.

    To verify that Intel HAXM is running, open a Command Prompt window with administrator privileges (Run as Administrator) and execute the following command:

    sc query intelhaxm

    If Intel HAXM is working, the command will show a status message indicating that the state is: «4 RUNNING».

    To stop or start Intel HAXM, use these commands:

    sc stop intelhaxm

    sc start intelhaxm

    Installing HAXM silently on Windows

    1. Download the installer package from https://github.com/intel/haxm/releases and extract it locally.
    2. Enter the extracted folder and run below command in an elevatedCommand Prompt or Windows PowerShell.

    The installer will check the system environment first. If the installation is successful, it will output as below.

    Intel HAXM installed successfully!

    The installer executable itself also supports to run in silent mode by passing /S on the Command Prompt or Windows PowerShell, e.g.,

    Please note that the parameter /S must be in uppercase.

    Installing Intel HAXM on Windows via Android Studio

    1. Download the Android Studio installer package from http://developer.android.com/sdk/index.html
    2. Run the Android Studio installer

    Select Performance (Intel HAXM) and click Next

    Accept the Android SDK License Agreement and the Intel HAXM License Agreement

  • Select the install location for Android Studio and Android SDK (if you do not have it already on your system).
  • Configure the amount of RAM available for Intel HAXM

    Note: This setting is obsolete since Intel HAXM 6.2.0.

  • Click Next and then Install. Wait until the installation has finished. Intel HAXM is now installed and ready to use.
  • To verify that Intel HAXM is running, open a Command Prompt window with administrator privileges (Run as Administrator) and execute the following command:

    sc query intelhaxm

    If Intel HAXM is working, the command will show a status message indicating that the state is: «4 RUNNING».

    To stop or start Intel HAXM, use these commands:

    sc stop intelhaxm

    sc start intelhaxm

    Removing Intel HAXM

    Warning: Close all instances of the Android x86 emulator before removing Intel HAXM. Intel HAXM cannot be removed while in use.

    To uninstall Intel HAXM, use Uninstall a program in the Control Panel or uninstall in silent mode as below.

    1. Launch an elevatedCommand Prompt or Windows PowerShell.
    2. Enter the extracted folder of installer package, which is previously downloaded from https://github.com/intel/haxm/releases, and run below command.

    Important: Removing Intel HAXM will disable acceleration of all Intel x86 Android emulators. Existing x86 Android Virtual Devices will not boot.

    Installing Intel HAXM again will re-enable Android emulator acceleration.

    Using Intel HAXM

    Intel HAXM requires an Android x86 system image provided by Intel. These images can be downloaded through the Android SDK manager or manually from the Intel Developer Zone website.

    Intel x86 Android emulator images will automatically be executed using the «emulator-x86» binary, provided with the Android SDK. If Intel HAXM is installed and working, emulation will be accelerated by Intel HAXM (using Intel Virtualization Technology).

    Troubleshooting

    Execute Disable Bit capability error

    When installing Intel HAXM, you may encounter an error regarding Execute Disable Bit support. This error message can be triggered by the following conditions:

    • Execute Disable Bit is not supported by your computer’s processor.
    • Execute Disable Bit is not enabled.

    Intel HAXM requires an Intel processor with Execute Disable Bit functionality and cannot be used on systems lacking this hardware feature. To determine the capabilities of your Intel processor, visit http://ark.intel.com.

    Execute Disable Bit is not enabled

    In some cases, Execute Disable Bit may be disabled in the system BIOS and must be enabled within the BIOS setup utility. To access the BIOS setup utility, a setup key must be pressed during the computer’s boot sequence. This key is dependent on which BIOS is used but it is typically the F2, Delete, or Esc key. Within the BIOS setup utility, Execute Disable Bit may be identified by the terms «XD», «Execute Disable», «No Execute», or «Hardware DEP», depending on the BIOS used.

    Windows hosts may need to enable DEP (Data Execution Prevention) in addition to Execute Disable Bit, as described in this Microsoft KB article: http://support.microsoft.com/kb/875352.

    For specific information on entering BIOS setup and enabling Execute Disable Bit, please contact your hardware manufacturer.

    Intel Virtualization Technology (Intel VT-x) capability

    When installing Intel HAXM, you may encounter an error regarding Intel VT-x support. This error message can be triggered by the following conditions:

    • Intel VT-x is not supported by your computer’s processor
    • Intel VT-x is not enabled

    Intel HAXM requires an Intel processor with Intel VT-x functionality and cannot be used on systems lacking this hardware feature. To determine the capabilities of your Intel processor, visit? http://ark.intel.com.

    Intel VT-x not enabled

    In some cases, Intel VT-x may be disabled in the system BIOS and must be enabled within the BIOS setup utility. To access the BIOS setup utility, a key must be pressed during the computer’s boot sequence. This key is dependent on which BIOS is used but it is typically the F2, Delete, or Esc key. Within the BIOS setup utility, Intel VT may be identified by the terms «VT», «Virtualization Technology», or «VT-d.» Make sure to enable all of the Virtualization features.

    For specific information on entering BIOS setup and enabling Intel VT, please contact your hardware manufacturer.

    Tips and Tricks

    Below are some recommendations to get the best experience out of the Android emulator using the Intel HAXM driver.

    Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *