2015-12-30 14 views
5

Ho installato Android SDK e JDK su Ubuntu Server 14.04 x64. Ma quando ho eseguito l'AVD, ho ottenutoCome eseguire Android Emulator da Shell su Ubuntu Server

error: 'SDL init failure, reason is: No available video device'

seguo questa https://stackoverflow.com/a/6965679 sudo apt-get install ia32-libs ma non ha funzionato.

Devo installare un desktop su Ubuntu Server?

+0

Emulatore Android è un'applicazione grafica, quindi richiede naturalmente un desktop. Perché lo stai eseguendo su un server? – 1615903

+0

Potrebbe anche essere utile porre questa domanda su http://askubuntu.com/ – Todd

+0

@ 1615903 perché non voglio caricare apk sul server remoto usando la pagina web ed eseguirlo. – sumy

risposta

-1

Non è possibile eseguire un emulatore nella versione Server di Ubuntu. L'emulatore richiede uno GUI. Quale il sistema operativo del server non possiede.

preferisce utilizzare un Ubuntu Desktop OS

Poi network your Server and Desktop, ottenere l'APK e caricarlo.

Se si desidera ancora utilizzare Ubuntu Server con una GUI, fare riferimento a this e ripubblicare la domanda con i tag di Ubuntu Server.

8

Provato ad eseguire emulatore senza interfaccia grafica seguendo questi passaggi:

Da: http://paulemtz.blogspot.com/2013/05/android-testing-in-headless-emulator.html

Then, to run the headless emulator:

emulator -avd test -no-skin -no-audio -no-window 

The '-no-skin' option removes the emulator buttons such as the home and other hardware keyboard buttons.

The '-no-audio' option disables the audio support.

Finally, the '-no-window' option disables the emulator's graphical window display.

Nota che -avd test avrebbe bisogno di essere modificato per fare riferimento alla vostra immagine emulatore specifica (AVD).

+0

se si tratta di soluzione funzionante, si prega di controllare come risposta per aiutare gli altri – piotrek1543

Problemi correlati