Failed to start Android emulator outside Android Studio on MacOSX

I get the following error after I attached the qemu process to the dock, then close and click on it again. Is there a way to run the emulator directly from Finder without first switching to Android Studio?

   /Users/johnny/Develop/android/sdk/tools/qemu/darwin-x86_64/qemu-system-x86_64 ; exit;
    dyld: Library not loaded: libQt5Widgets.5.dylib
      Referenced from: /Users/johnny/Develop/android/sdk/tools/qemu/darwin-x86_64/qemu-system-x86_64
      Reason: image not found
    [1]    48616 trace trap  /Users/johnny/Develop/android/sdk/tools/qemu/darwin-x86_64/qemu-system-x86_6

    [Process completed]
+4
source share
1 answer

It seems that some dynamically linked libraries have been moved along with the new Android emulator.

All you need to do: add the library folder to the search path before starting the emulator from the command line.

Sort of:

export DYLD_LIBRARY_PATH="<path to your SDK>/tools/lib64:<path to your SDK>/tools/lib64/qt/lib:$DYLD_LIBRARY_PATH"

Assuming you want to run a 64-bit version. Alternatively, you can start the emulator using this command line:

emulator64-x86 -avd <name_of_your_AVD_file>

, AVD. , , , .

+6

All Articles