6

I installed Android SDK and JDK on Ubuntu Server 14.04 x64. But when I run the AVD, I got

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

I follow this https://stackoverflow.com/a/6965679 sudo apt-get install ia32-libs but didn't work.

Should I install any desktop on Ubuntu Server?

Community
  • 1
  • 1
sumy
  • 281
  • 2
  • 4
  • 15

2 Answers2

11

Try to run emulator without GUI following these steps:

From: 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.

Note that -avd test would need to be modified to refer to your specific emulator image (AVD).

piotrek1543
  • 19,130
  • 7
  • 81
  • 94
-3

You cannot run an emulator on the Server version of Ubuntu. The Emulator requires a GUI. Which the Server OS does not possess.

Rather use an Ubuntu Desktop OS

Then network your Server and Desktop, get the APK and upload it.

If you still wish to use Ubuntu Server with a GUI, refer to this, and repost the question with Ubuntu Server tags.

Community
  • 1
  • 1
TejjD
  • 2,571
  • 1
  • 17
  • 37
  • This is not true. You can run Android Emulator on Ubuntu Server. For example: If you add `-no-window` it's creating an emulator in headless mode which works on Ubuntu Server. – yershalom May 13 '18 at 13:44