我正在使用Cordova构建应用。我使用 Ubuntu 14.04 在 Vagrant VM 上运行 Android SDK 。当我尝试模拟Android时,我收到以下错误:
$ cordova emulate android
Running command: /home/vagrant/sync/www/fitfortime/app/platforms/android/cordova/run --emulator
WARNING : no emulator specified, defaulting to cordovakitkat
Waiting for emulator...
libGL error: failed to load driver: swrast
libGL error: failed to load driver: swrast
emulator: warning: opening audio output failed
X Error of failed request: GLXUnsupportedPrivateRequest
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 16 (X_GLXVendorPrivate)
Serial number of failed request: 170
Current serial number in output stream: 172
我按照本教程设置了我的环境: http://flurdy.com/docs/android/cordova_vagrant_android.html