【运行Android模拟器】
执行:
calm@ubuntu:~/android2.3.5$ export PATH=$PATH:~/android2.3.5/out/host/linux-x86/bin
calm@ubuntu:~/android2.3.5$ export ANDROID_PRODUCT_OUT=~/android2.3.5/out/target/product/generic
calm@ubuntu:~/android2.3.5$ emulator
报错:
SDL init failure ; No available vedio device
解决:
1、将软件源更新为:http://mirrors.sohu.com/ubuntu
并执行 sudo apt-get update
2、执行以下命令:
sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install libsdl1.2debian:i386
之后再执行emulator 即会弹出Android模拟器窗口,若还不行则再次重复执行以下命令:
calm@ubuntu:~/android2.3.5$ export PATH=$PATH:~/android2.3.5/out/host/linux-x86/bin
calm@ubuntu:~/android2.3.5$ export ANDROID_PRODUCT_OUT=~/android2.3.5/out/target/product/generic
calm@ubuntu:~/android2.3.5$ emulator
即可出现Android模拟器窗口
参考资料:http://stackoverflow.com/questions/12709719/sdl-init-failure-reason-is-no-available-video-device-in-ubuntu-12-04-lts