Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator version 30.5.4.0 mac os issues

I'm trying to run android emulator, but instead of success I'm getting errors and lagged ui Errors:

handleCpuAcceleration: feature check for hvf
cannot add library /Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed
added library /Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
cannot add library /Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libMoltenVK.dylib: failed
HVF error: HV_ERROR
qemu-system-x86_64: failed to initialize HVF: Invalid argument
Failed to open the hax module
No accelerator found.
qemu-system-x86_64: failed to initialize HAX: Operation not supported by device
added library /Library/Android/sdk/emulator/lib64/vulkan/libMoltenVK.dylib

I've already tried everything recommended steps from this post Android Emulator 30.4.5 not working on MacOS and from the other relative posts on stackoverflow and google search results, haven't succeed yet.

Mac OS Big Sur 11.2.3

like image 439
Artem Z. Avatar asked Apr 08 '21 11:04

Artem Z.


People also ask

Can Android emulator run on Mac?

Bluestacks is one of the most popular Android emulators for Windows and is probably the best Android emulator for macOS as well. This emulator is built primarily for mobile gamers and claims to provide a “PC-like” gaming experience for your mobile apps.

How can I change my Android emulator version?

Launch the emulator, tap "..." on the right-hand side panel, click Help > About. Go to Android Studio > Preferences, search for "Android SDK", click "SDK Tools", and then scroll to Android Emulator. On Mac, go to Terminal and run ~/Library/Android/sdk/emulator/emulator -version.

Where are Android emulator files stored Mac?

The default locations are the following: Mac OS X and Linux - ~/Library/Android/sdk/system-images/android- apiLevel / variant / arch / Microsoft Windows XP - C:\Documents and Settings\ user \Library\Android\sdk\system-images\android- apiLevel \ variant \ arch \

What is the latest emulator version for Android?

Wednesday, March 25, 2020 Emulator 30.0.5 is now available in all channels. This is primarily a bugfix release with no new features except to be compatible with future Android R Developer Previews. Changes relative to previous stable version, 30.0.0:

What's new in emulator 30?

Emulator 30.0.5 is now available in all channels. This is primarily a bugfix release with no new features except to be compatible with future Android R Developer Previews. Changes relative to previous stable version, 30.0.0:

What are the problems with Android emulator?

Android emulator troubleshooting 1 Deployment issues on Windows. Some error messages may be displayed by the emulator when you deploy your app. ... 2 Missing Google Play Services. ... 3 Performance issues. ... 4 Hardware acceleration issues. ... 5 Additional troubleshooting tips. ...

Why can’t I install the APK on my Emulator?

If you see an error about a failure to install the APK on the emulator or a failure to run the Android Debug Bridge ( adb ), verify that the Android SDK can connect to your emulator. To verify emulator connectivity, use the following steps:


2 Answers

For me worked a solution from this answer.

You have to download the emulator from the google repository https://dl.google.com/android/repository/emulator-darwin-6885378.zip and replace the one you have already installed, with the downloaded one.

If you have file quarantine enabled, as I did, you have to remove it from downloaded files:

xattr -r -d com.apple.quarantine /path/to/dir

After this, your emulator should work properly.

like image 169
Kamil Owczarz Avatar answered Oct 16 '22 23:10

Kamil Owczarz


It looks like emulator update revision: 30.5.6 has solved this issue.

like image 1
Tomasz Avatar answered Oct 17 '22 00:10

Tomasz