Can not start android emulator from command line

android, android-emulator, command-line

Solution

I had the exact same issue and I am using a workaround. Let me explain:

There is a 'bug' in the emulator: it is not able to find the relative path

..\emulator\lib64\qt\lib

Incredibly awesome since this is so simple to fix... whatever.

Just cd to c:\path\to\your\android-sdks\emulator, typically something like

cd c:\Users\<YOUR_USER_NAME>\android-sdks\emulator

then, in this directory, run any emulator command you want, for instance your command:

emulator.exe -avd Nexus_3_7_API_17_ver_4_2_1

in your teminal this will look like this:

c:\Users\<YOUR_USER_NAME>\android-sdks\emulator> emulator.exe -avd Nexus_3_7_API_17_ver_4_2_1

and it will work.

Problem

Windows 7, Android Studio 2.3 I has 3 emulators. And all success start from Android Studio. But I want to start them from command line. So my steps (from command lines): - emulator -list-avds Success show all my emulators: - Nexus_3_7_API_17_ver_4_2_1 - Nexus_3_7_hdpi_API_24_7_0 - Nexus_5_96_xxhdpi_API_24_7_0 So I want to start one of them: emulator -avd Nexus_3_7_API_17_ver_4_2_1 But I get error: ``` [8648]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\lib Could not launch '..\emulator/qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory ```

Original source