Can not start android emulator from command line
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\userName\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\userName\android-sdks\emulator> emulator.exe -avd Nexus_3_7_API_17_ver_4_2_1
and it will work.
Adding emulator path in Environmental Variables solved my problem. Now, I can run emulator command from anywhere.
You can achieve this by following these steps:
- Open 'Advanced System Settings'.
- Click 'Environmental Variables'.
Add the following to Path variables in both boxes:
%USERPROFILE%\AppData\Local\Android\Sdk\emulator
Restart Command Prompt.
Note: Your path could be different than the one mentioned above. If this is the case, then you have to search for your emulator path.