Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start Android Emulator - Library not loaded

I updated the Android Emulator in Android Studio. After the update i always get "The emulator process was killed" when i try to start an AVD.

I tried to start it from command line and get following error.

emulator: Android emulator version 30.5.3.0 (build_id 7196367) (CL:N/A) dyld: Library not loaded: /System/Library/Frameworks/IOUSBHost.framework/Versions/A/IOUSBHost Referenced from: /Users/NaoKreuzeder/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 Reason: image not found Abort trap: 6

I searched for file "IOUSBHost.framework" on my mac. But could not find it.

How to solve this? Can someone point me in the right direction to find a solution?

like image 698
Nao Kreuzeder Avatar asked Mar 18 '21 19:03

Nao Kreuzeder


People also ask

How do I fix Android Emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Why emulator is not opening?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How do I manually start an emulator?

Build and package your app into an APK as described in Build and Run Your App. Start the emulator from the command line as described in the previous section, using any startup options necessary. Install your app using adb. Run and test your app on the emulator.


1 Answers

I do not have a solution to provide, but I can confirm that the problem appears in the following configuration:

  • macos High Sierra (10.13.6),
  • AndroidStudio 4.1.3,
  • Android Emulator 30.5.3,
  • HAXM 7.6.5

I can also confirm that in newer version of macsos like Big Sure (11.2.3) with the same versions of development tools everything works fine, because the IOUSBHost.framework exists.

From Apple developer website https://developer.apple.com/documentation/iousbhost/iousbhostdevice we can see that the framework IOUSBHost is available from version macOS 10.15 and above.

like image 129
Dimitris Avatar answered Sep 21 '22 07:09

Dimitris