When the IDE Android Studio is running, it is very easy to launch the Android emulator from the command line under Ubuntu. I my case, I just issue:
$HOME/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-i386 -avd My_Galaxy_Nexus
But when the IDE is not running, this fails. I get next error message (and a warning that can be ignored, in my opinion):
emulator: WARNING: encryption is off
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
I suppose this is due to the fact that the Android Studio IDE is creating an environment and loading libraries (the Qt platform) that I am missing for launching the emulator as stand-alone.
Since the IDE is very heavy in consuming resources on my laptop, I would prefer to launch only the emulator, because it is a useful way for me to have WhatsApp running without having an Android or Mac smartphone.
My question is: how to launch the emulator as a stand-alone app?