Error: “SDL initialization failed, reason: no video device available” when starting AVD

Hey guys, this is killing me. Every time I try to run an Android application in Eclipse, I get an error:

[2011-05-24 23:11:04 - app] Android Launch!
[2011-05-24 23:11:04 - app] adb is running normally.
[2011-05-24 23:11:04 - app] Performing droid.blah.app activity launch
[2011-05-24 23:11:04 - app] Automatic Target Mode: launching new emulator with     compatible AVD 'default'
[2011-05-24 23:11:04 - app] Launching a new emulator with Virtual Device 'default'
[2011-05-24 23:11:04 - Emulator] SDL init failure, reason is: No available video device

I am running the 64 bit version of Ubuntu 10.04 and the Android 2.3.3 SDK. I searched EXHAUSTIVELY to try to find a solution, tried to install all the 32-bit libraries that were proposed here , but they are already installed.

I am seriously considering moving to a 32-bit version of Ubuntu, but it seems that from what I read, other people can make it work. Just not me! Does anyone have any advice? Thank!

+5
source share
3 answers

You need more 32-bit libraries .;)

In Ubuntu / Debian mode:

sudo apt-get install ia32-libs
+6
source

I also got the same error when starting automatic builds on our Jenkins server. I think the problem is that the emulator should talk to the X display. If you run this on your own computer, you can try setting the DISPLAY environment variable in the terminal before trying to start the emulator. Sort of:

export DISPLAY=:0.0

If you use this on a Jenkins headless server, you need to start an Xvnc session during build to provide an X server for the emulator.

+5
source

" SDL" "" . Ex. jenkins , root.

, eclipse. root .

root, eclipse root ( , , , ).

0

All Articles