I've prepaired an android development environment using apache cordova inside a vagrant box with ubuntu 16.04 by following mainly
this guide except using the latest android sdk tools (sdkmanager & avdmanager).
I enable the ssh X11 forwarrding by adding the following in the Vagrantfile
Code:
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
but when I'm trying to run the android emulator with
Code:
cordova emulate android
, a new window is oppened for a while but then it stucks (stop loading) and I'm gettin back the following X11 error:
Code:
No emulator specified, defaulting to Android-27
Waiting for emulator to start...
emulator: Requested console port 5584: Inferring adb port 5585.
emulator: WARNING: encryption is off
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 1 (X_ShmAttach)
Serial number of failed request: 14
Current serial number in output stream: 15
Any idea?