Skip to content Skip to sidebar Skip to footer

Error: 'sdl Init Failure, Reason Is: No Available Video Device' When Launching Avd

This is killing me. Every time I try to run my Android app in Eclipse, I'm getting the error: [2011-05-24 23:11:04 - app] Android Launch! [2011-05-24 23:11:04 - app] adb is running

Solution 1:

You need more 32 bit libraries. ;)

On Ubuntu/Debian run:

sudo apt-get install ia32-libs

Solution 2:

I also got this same error when running automated builds on our Jenkins server. I think the problem is that the emulator needs to talk to an X display. If you are running this on your own machine, you can try setting the DISPLAY environment variable in the terminal before trying to launch the emulator. Something like:

export DISPLAY=:0.0

If you are running this on a headless Jenkins server, then you need to run an Xvnc session during the build to provide an X server for the emulator.

Solution 3:

I get the "SDL init failure" when running the "emulator" command with a user with not enough privileges. Ex. jenkins user gets the error, but not root.

Drop to the commandline and run the emulator command with same user that is running eclipse. Then switch to root and run emulator command again.

If it works with user root, consider installing and running eclipse as root (not recommended, but I don't know the proper way to do it, this is just a workaround).

Post a Comment for "Error: 'sdl Init Failure, Reason Is: No Available Video Device' When Launching Avd"