Can't start Android emulator from command line

Windows 7, Android Studio 2.3

I have 3 emulators. And all success starts with Android Studio.

But I want to run them from the command line. So my steps (from command line):

  • emulator -list-avds

All my emulators will show success:

  • 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 run one of these:

emulator -avd Nexus_3_7_API_17_ver_4_2_1

But I am getting 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

      

+3


source to share


3 answers


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

There is a "bug" in the emulator that cannot find the relative path

..\emulator\lib64\qt\lib

      

Incredibly awesome as it's so easy to fix ... whatever.

Just select cd for c: \ path \ to \ your \ android-sdks \ emulator, usually something like

cd c:\Users\userName\android-sdks\emulator

      



then in that directory run any emulator command like your command:

emulator.exe -avd Nexus_3_7_API_17_ver_4_2_1

      

in your theme it will look like this:

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

      

and it will work.

+5


source


  • Open command prompt
  • go to your emulator path for ex:

    cd c: \ sdk \ tools

  • start emulator:

    emulator -avd Nexus_3_7_API_17_ver_4_2_1



+1


source


I think the error is because u didn't give the exact location, so do this

  • Open a command prompt write this emulator -avd avd_name [{-option [value]} ...]

/ Users / janedoe / Library / Android / sdk / tools / emulator -avd Nexus_3_7_API_17_ver_4_2_1 -netdelay none -netspeed full

0


source







All Articles