Android Studio 4.2.2 Cannot install HAXM Emulator Accelerator - android-studio
Emulators have been working find since v3.x in Android Studio for me on Windows 7.
Recently, it attempted to upgrade the HAXM and failed. Now attempting to start an emulator fails with "Could not start AVD". The message at the top of the AVD Manager says "HAXM device is not found. Troubleshoot.".
Clicking on Troubleshoot produces the following advice.
Enable VT-x in your BIOS security settings (it was working before and my bios should not have changed, so I have not looked at this)
ensure that HAXM is installed propertly (it is not; installation fails)
Try disabling 3rd party security software (nothing has changed here; using only Windows Defender)
If I go to "Tools > SDK Manager", "Apearance & Behavior > System Settings > Android SDK", "SDK Tools" Tab, and attempt to install Intel x86 Emulator Accelerator (HAXM installer) 7.6.5, it fails. This is what I get in the IDE log file...
2021-07-20 17:13:21,636 [ 724014] INFO - tools.idea.sdk.wizard.VmWizard - Parsing C:\Users\jjones\AppData\Local\Android\Sdk\tools\package.xml
2021-07-20 17:13:21,655 [ 724033] ERROR - ectedPackagesStep$CustomLogger - Failed to update status to COMPLETE
com.android.repository.api.PackageOperation$StatusChangeListenerException: HAXM setup failed!
at com.android.tools.idea.sdk.install.VmInstallListener.statusChanged(VmInstallListener.java:63)
at com.android.repository.impl.installer.AbstractPackageOperation.updateStatus(AbstractPackageOperation.java:508)
at com.android.repository.impl.installer.AbstractPackageOperation.complete(AbstractPackageOperation.java:207)
at com.android.tools.idea.sdk.wizard.InstallTask.completePackages(InstallTask.java:174)
at com.android.tools.idea.sdk.wizard.InstallTask.run(InstallTask.java:127)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:935)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:442)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$null$3(ProgressRunner.java:235)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-07-20 17:13:21,657 [ 724035] ERROR - ectedPackagesStep$CustomLogger - Android Studio 4.2.2 Build #AI-202.7660.26.42.7486908
2021-07-20 17:13:21,657 [ 724035] ERROR - ectedPackagesStep$CustomLogger - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2021-07-20 17:13:21,657 [ 724035] ERROR - ectedPackagesStep$CustomLogger - OS: Windows 7
2021-07-20 17:13:21,657 [ 724035] ERROR - ectedPackagesStep$CustomLogger - Last Action: Android.RunAndroidSdkManager
2021-07-20 17:13:21,657 [ 724035] INFO - ectedPackagesStep$CustomLogger - "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" failed.
2021-07-20 17:13:21,658 [ 724036] INFO - ectedPackagesStep$CustomLogger - Failed packages:
2021-07-20 17:13:21,658 [ 724036] INFO - ectedPackagesStep$CustomLogger - - Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)
I know there are dozens of questions here on this or similar topics. I have tried many, to no avail. Others seem not to pertain to my situation.
Related
Flutter on Fedora 36 - Linux compilation not working "unable to load driver: swrast"
when running flutter run to run on linux, a blank page appears with this in the debug console: Launching lib/main.dart on Linux in debug mode... libGL error: MESA-LOADER: failed to open swrast: /lib64/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by /snap/flutter/current/usr/lib/x86_64-linux-gnu/dri/../../../../lib/x86_64-linux-gnu/librt.so.1) (search paths :/usr/lib/dri:/snap/flutter/current/usr/lib/x86_64-linux-gnu/dri:, suffix _dri) libGL error: failed to load driver: swrast ** (flutter_mastering:4822): WARNING **: 18:51:11.101: Failed to start Flutter renderer: Unable to create a GL context searched for similar issues on the topic: https://github.com/flutter/flutter/issues/75536 https://github.com/flutter/flutter/issues/76178 Cannot load `swrast` and `iris` drivers in Fedora 35 https://www.linuxquestions.org/questions/linux-software-2/libgl-error-on-fedora-28-swrast-solved-4175631923/ apparently nothing worked, here is some of my device's info: 5.19.6-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 31 17:58:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ❯ glxinfo | grep render GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_NV_float_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method, Extended renderer info (GLX_MESA_query_renderer): OpenGL renderer string: AMD Radeon Vega 3 Graphics (raven, LLVM 14.0.0, DRM 3.47, 5.19.6-200.fc36.x86_64) GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, GL_INTEL_blackhole_render, GL_KHR_blend_equation_advanced, GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp, GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, GL_INGR_blend_func_separate, GL_INTEL_blackhole_render, GL_NV_compute_shader_derivatives, GL_NV_conditional_render, GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control, GL_INTEL_blackhole_render, GL_KHR_blend_equation_advanced, GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments, GL_OES_element_index_uint, GL_OES_fbo_render_mipmap, ❯ flutter doctor [✓] Flutter (Channel stable, 3.0.5, on Fedora Linux 36 (Workstation Edition) 5.19.6-200.fc36.x86_64, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.71.0) [✓] Connected device (1 available) [✓] HTTP Host Availability ! Doctor found issues in 1 category.
The issue is because of the snap install, what worked for me is replacing the snap version with the manual install from github. You can also use the tarball. git clone https://github.com/flutter/flutter.git -b stable now to add flutter to path: sudo gedit ~/.bashrc Assuming ur flutter install was at /home/user/ add this at the end of the file: export PATH="$PATH:/flutter/bin" If ur flutter install is somewhere else then change the directory accordingly After saving and exiting, refresh ur .bashrc file with: source ~/.bashrc Now check if its added to path with: echo $PATH If you see a /flutter/bin then ur doing fine. To check if flutter's installed: flutter --version To add any missing dependencies (if ur on Fedora) use: sudo dnf install bash curl file git unzip which xz zip mesa-libGLU clang cmake ninja-build pkg-config gtk3-devel On Ubuntu based distros it is sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
cannot run android studio emulator
Trying to setup Intel x86 Emulator Accelerator (HAXM installer). Even after dowanlod manually from git hub get the same result. This is the resulf od trying install it through SDK-Manger: Packages to install: - Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager) Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". Downloading https://dl.google.com/android/repository/extras/intel/haxm-windows_v7_6_5.zip "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. Installing Intel x86 Emulator Accelerator (HAXM installer) in C:\Users\Noam Huna\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. Failed to update status to COMPLETE "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" failed. Failed packages: Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)
Vulkan 1.1 APIs missing from device - Android Studio Emulator
On Manjaro Linux. Running Android Studio 3.6.3. Everything works great, but when I try to launch any emulator I am getting this error: Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device I'm not having any driver issues outside of trying to use the Android Studio Emulator. Studio SDK's installed: Vulkan driver's installed: I have Radeon's Vulkan mesa driver installed in manjaro. I also have virtualization enabled for processor in BIOS. Manjaro Information: System: Host: command Kernel: 5.4.40-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 0a:00.0 Display: x11 server: X.org 1.20.8 driver: amdgpu resolution: <xdpyinfo missing> OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.40-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.0.6 direct render: Yes
You can work around it as indicated here https://stackoverflow.com/a/59715169/1796802 : Create the file ~/.android/advancedFeatures.ini (for Windows users path should be C:\Users\Dane\.android\advancedFeatures.ini) with the following content: # Here's how to disable Vulkan apps to talk to the emulator. # Add the following lines to ~/.android/advancedFeatures.ini (create this file if it doesn't exist already): Vulkan = off GLDirectMem = on
Error Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration
I installed Android Studio for the first time, but it doesn't even start but gives me this error: Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration! I have installed Intel HAXM and enabled Intel Vitualization within the BIOS.
VAAPI Compatibility issue with "Intel Corporation 3rd Gen Core processor Graphics Controller"
i am getting below error while running vainfo libva info: VA-API version 0.99.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_0_32 libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed libva info: va_openDriver() returns 1 vaInitialize failed with error code 1 (operation failed),exit This is happening after installing Intel Media Server Studio 2017 (see), before that vainfo was working fine, as i installed below packages and drivers, suggested from here. sudo apt-get install i965-va-driver libva-intel-vaapi-driver vainfo Machine configuration : ubuntu 14.04 LTS Processor : Intel i7(i7-3720QM) Graphics : Intel Corporation 3rd Gen Core processor Graphics Controller Is this just because Intel SDK does not support 3rd Generation Processor?
The problem is with version of Media SDK used, Media SDK-2017 supports only 4th/5th Generation Processors. For 3rd Generation Machine Media SDK-2015-R1 is the compatible version, which can be downloaded from here. Using the correct version with corresponding hardware will solve this problem.