编译android源码四(常见错误)

运行如下命令:

$ emulator

1.错误信息: emulator: WARNING: system partition size adjusted to match image file (205 MB > 200 MB)

解决方法: emulator -partition-size 300


2. 错误信息:  SDL init failure, reason is: No available video device

2.1 安装 libsdl1.2debian:i386.

  • I added the site http://archive.canonical.com/ to the list of repositories.

  • I updated the apt-get.

  • I installed the libsdl1.2debian:i386.

sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"    
sudo apt-get update    
sudo apt-get install libsdl1.2debian:i386

问题原址: http://stackoverflow.com/questions/12709719/sdl-init-failure-reason-is-no-available-video-device-in-ubuntu-12-04-lts

2.2安装
sudo apt-get install ia322stdc++6b32

问题原址:http://stackoverflow.com/questions/4841908/sdl-init-failure-reason-is-no-available-video-device

用2.1 或者2.2 的方法试试。  

本人的就是试过上面所有的方法成功了


出现上面错误的原因,有可能是:

from Android emulator on a Unix/Linux platform, this typically indicates your shell's DISPLAY variable is not pointing to the correct X11 Display. Try launching the Android emulator as shown below. You may add your own parameters as needed as long the DISPLAY=:0 is there.
问题原址
http://babilonline.blogspot.tw/2012/06/android-emulator-gives-sdl-init-failure.html


解决方法:  DISPLAY=:0 emulator 


3.错误信息: emulator: WARNING: system partition size adjusted to match image file (205 MB > 200 MB)

SDL init failure, reason is: No available video device

解决方法: DISPLAY=:0 emulator -partition-size 300



原文地址:https://www.cnblogs.com/java20130722/p/3207272.html